Set Home Connect button unique id to shorthand attribute (#140745)

This commit is contained in:
Joost Lekkerkerker 2025-03-16 19:54:00 +01:00 committed by GitHub
parent b5fa3e74c0
commit 735c98cb86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ class HomeConnectButtonEntity(HomeConnectEntity, ButtonEntity):
)
self.entity_description = desc
self.appliance = appliance
self.unique_id = f"{appliance.info.ha_id}-{desc.key}"
self._attr_unique_id = f"{appliance.info.ha_id}-{desc.key}"
def update_native_value(self) -> None:
"""Set the value of the entity."""