Fix turning off via select in harmony (#84509)

closes https://github.com/home-assistant/core/issues/84413
pull/84516/head
J. Nick Koston 2022-12-23 09:12:01 -10:00 committed by GitHub
parent 070aa714a0
commit e4c610af62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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: