make async_turn_off actually async

This commit is contained in:
Bas Nijholt 2020-09-05 20:16:15 +02:00
commit 3b868858b0

View file

@ -273,7 +273,7 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
self._state = True
await self._force_update_switch()
def async_turn_off(self, **kwargs):
async def async_turn_off(self, **kwargs):
"""Turn off circadian lighting."""
self._state = False
self._hs_color = None