Fix turning off via select in harmony (#84509)

closes https://github.com/home-assistant/core/issues/84413
This commit is contained in:
J. Nick Koston
2022-12-23 09:12:01 -10:00
committed by GitHub
parent 070aa714a0
commit e4c610af62

View File

@@ -67,6 +67,7 @@ class HarmonyActivitySelect(HarmonyEntity, SelectEntity):
"""Change the current activity."""
if option == TRANSLATABLE_POWER_OFF:
await self._data.async_start_activity(ACTIVITY_POWER_OFF)
return
await self._data.async_start_activity(option)
async def async_added_to_hass(self) -> None: