diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index bcc90422..491ca462 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -1276,9 +1276,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity): ) continue tasks.append( - asyncio.create_task( - self._adapt_light(light, transition, force=force, context=context) - ) + self._adapt_light(light, transition, force=force, context=context) ) if len(tasks): await asyncio.gather(*tasks)