From 3b868858b006f53a06e4e15dbf517fdd4779c8dc Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sat, 5 Sep 2020 20:16:15 +0200 Subject: [PATCH] make async_turn_off actually async --- custom_components/circadian_lighting/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 43b61a88..3ded81a2 100755 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -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