Fix entity translations
This commit is contained in:
@@ -331,6 +331,7 @@ class ArkteosSensor(ArkteosEntity, SensorEntity):
|
||||
def __init__(self, client: ArkteosClient, description: ArkteosSensorDescription) -> None:
|
||||
super().__init__(client)
|
||||
self.entity_description = description
|
||||
self._attr_translation_key = description.translation_key
|
||||
self._attr_unique_id = f"arkteos_zuran4_{description.key}"
|
||||
latest_data = self._latest_data()
|
||||
self._has_received_frame = latest_data is not None
|
||||
|
||||
Reference in New Issue
Block a user