Add serial number to Axis (#102522)

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
This commit is contained in:
Joost Lekkerkerker 2023-10-22 18:34:01 +02:00 committed by GitHub
parent a04c37c59f
commit af0b53cc79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,8 @@ class AxisEntity(Entity):
self.device = device
self._attr_device_info = DeviceInfo(
identifiers={(AXIS_DOMAIN, device.unique_id)}
identifiers={(AXIS_DOMAIN, device.unique_id)},
serial_number=device.unique_id,
)
async def async_added_to_hass(self) -> None: