From 70ceddf165e6dd8c8ad54c266be6af876849baf2 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 5 Feb 2024 12:41:25 +0100 Subject: [PATCH] Set shorthand attribute in Epion (#109695) --- homeassistant/components/epion/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/epion/sensor.py b/homeassistant/components/epion/sensor.py index 826d565c2cd9..c722e73ac6cc 100644 --- a/homeassistant/components/epion/sensor.py +++ b/homeassistant/components/epion/sensor.py @@ -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"),