Fix missing name and identifiers for ELKM1 connected devices (#99828)

This commit is contained in:
J. Nick Koston 2023-09-08 06:32:21 -05:00 committed by Bram Kragten
parent 0b4fedccff
commit 7dc7060825

View File

@ -518,6 +518,8 @@ class ElkEntity(Entity):
def device_info(self) -> DeviceInfo:
"""Device info connecting via the ElkM1 system."""
return DeviceInfo(
name=self._element.name,
identifiers={(DOMAIN, self._unique_id)},
via_device=(DOMAIN, f"{self._prefix}_system"),
)