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 GitHub
parent 8742c550be
commit 98ff3e233d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"),
)