mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
remove unnecessary create_task
This commit is contained in:
parent
26c7535935
commit
2c5da6d739
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue