Fix program switches unique ID at Home Connect (#128397)

This commit is contained in:
J. Diego Rodríguez Royo 2024-10-25 20:05:29 +02:00 committed by GitHub
parent d8a06777fe
commit fee1bde231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,6 +188,7 @@ class HomeConnectProgramSwitch(HomeConnectEntity, SwitchEntity):
)
super().__init__(device, SwitchEntityDescription(key=program_name))
self._attr_name = f"{device.appliance.name} {desc}"
self._attr_unique_id = f"{device.appliance.haId}-{desc}"
self._attr_has_entity_name = False
self.program_name = program_name