Add software version to Blink device info (#107548)

* add firmware to device

* Version from attributes
pull/107582/head
mkmer 2024-01-08 14:32:29 -05:00 committed by GitHub
parent e349608f92
commit 438ba7eaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class BlinkSyncModuleHA(
name=f"{DOMAIN} {name}",
manufacturer=DEFAULT_BRAND,
serial_number=sync.serial,
sw_version=sync.attributes.get("version"),
)
self._update_attr()

View File

@ -79,6 +79,7 @@ class BlinkCamera(CoordinatorEntity[BlinkUpdateCoordinator], Camera):
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, camera.serial)},
serial_number=camera.serial,
sw_version=camera.attributes.get("version"),
name=name,
manufacturer=DEFAULT_BRAND,
model=camera.camera_type,