From 4870b7c4053ae4d6e027a12c764c03bf45db5be4 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Tue, 15 Sep 2020 21:48:51 +0200 Subject: [PATCH] add missing await --- custom_components/adaptive_lighting/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 2a80686e..9165725c 100755 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -579,7 +579,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity): if not self._should_adjust(): return tasks = [ - self._adjust_light(light, transition) + await self._adjust_light(light, transition) for light in lights if is_on(self.hass, light) ]