mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add serial number to Axis (#102522)
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
This commit is contained in:
parent
a04c37c59f
commit
af0b53cc79
@ -42,7 +42,8 @@ class AxisEntity(Entity):
|
|||||||
self.device = device
|
self.device = device
|
||||||
|
|
||||||
self._attr_device_info = DeviceInfo(
|
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:
|
async def async_added_to_hass(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user