diff --git a/blinkpy/camera.py b/blinkpy/camera.py index 72ddd11e..ba0a37b1 100644 --- a/blinkpy/camera.py +++ b/blinkpy/camera.py @@ -27,6 +27,7 @@ def __init__(self, sync): self.network_id = None self.thumbnail = None self.serial = None + self.version = None self.motion_enabled = None self.battery_level = None self.clip = None @@ -52,6 +53,7 @@ def attributes(self): "name": self.name, "camera_id": self.camera_id, "serial": self.serial, + "version": self.version, "temperature": self.temperature, "temperature_c": self.temperature_c, "temperature_calibrated": self.temperature_calibrated, @@ -232,6 +234,7 @@ def extract_config_info(self, config): self.camera_id = str(config.get("id", "unknown")) self.network_id = str(config.get("network_id", "unknown")) self.serial = config.get("serial") + self.version = config.get("fw_version") self.motion_enabled = config.get("enabled", "unknown") self.battery_state = config.get("battery_state") or config.get("battery") self.temperature = config.get("temperature") diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py index 01af15c8..44f96a60 100644 --- a/blinkpy/sync_module.py +++ b/blinkpy/sync_module.py @@ -34,6 +34,7 @@ def __init__(self, blink, network_name, network_id, camera_list): self.region_id = blink.auth.region_id self.name = network_name self.serial = None + self.version = None self.status = "offline" self.sync_id = None self.host = None @@ -72,6 +73,7 @@ def attributes(self): "id": self.sync_id, "network_id": self.network_id, "serial": self.serial, + "version": self.version, "status": self.status, "region_id": self.region_id, "local_storage": self.local_storage, @@ -153,6 +155,7 @@ async def sync_initialize(self): "Could not retrieve sync module information with response: %s", response ) return False + self.version = self.summary.get("fw_version") return response async def _init_local_storage(self, sync_id):