mirror of
https://github.com/home-assistant/core
synced 2024-09-28 03:04:04 +02:00
Set shorthand attribute in Epion (#109695)
This commit is contained in:
parent
682fff73f5
commit
70ceddf165
@ -88,9 +88,9 @@ class EpionSensor(CoordinatorEntity[EpionCoordinator], SensorEntity):
|
||||
super().__init__(coordinator)
|
||||
self._epion_device_id = epion_device_id
|
||||
self.entity_description = description
|
||||
self.unique_id = f"{epion_device_id}_{description.key}"
|
||||
self._attr_unique_id = f"{epion_device_id}_{description.key}"
|
||||
self._attr_device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, self._epion_device_id)},
|
||||
identifiers={(DOMAIN, epion_device_id)},
|
||||
manufacturer="Epion",
|
||||
name=self.device.get("deviceName"),
|
||||
sw_version=self.device.get("fwVersion"),
|
||||
|
Loading…
Reference in New Issue
Block a user