Skip to content

Commit

Permalink
Update switch.py
Browse files Browse the repository at this point in the history
fixes issue claytonjn#227 from the main claytonjn fork
  • Loading branch information
goobags authored Jun 8, 2023
1 parent 332e061 commit 7533de5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions custom_components/circadian_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,13 @@ async def _adjust_lights(self, lights, transition):
service_data,
)
tasks.append(
self.hass.services.async_call(
LIGHT_DOMAIN, SERVICE_TURN_ON, service_data
self.hass.async_create_task(
self.hass.services.async_call(
LIGHT_DOMAIN, SERVICE_TURN_ON, service_data
)
)
)
await asyncio.wait(tasks)
if tasks:
await asyncio.wait(tasks)

Expand Down

0 comments on commit 7533de5

Please sign in to comment.