Add entity translations to Nexia (#98803)

This commit is contained in:
Joost Lekkerkerker 2023-08-22 14:41:15 +02:00 committed by GitHub
parent 09efd1c972
commit 097c7fbfef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 90 additions and 45 deletions

View file

@ -43,9 +43,9 @@ class NexiaAutomationScene(NexiaEntity, Scene):
"""Initialize the automation scene."""
super().__init__(
coordinator,
name=automation.name,
unique_id=automation.automation_id,
automation.automation_id,
)
self._attr_name = automation.name
self._automation: NexiaAutomation = automation
self._attr_extra_state_attributes = {ATTR_DESCRIPTION: automation.description}