mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-13 23:34:04 +02:00
await switch.manager.adaptation_tasks
This commit is contained in:
parent
29ce84b27c
commit
eb572093a7
2 changed files with 1 additions and 2 deletions
|
|
@ -2259,8 +2259,6 @@ class AdaptiveLightingManager:
|
|||
elif state == STATE_OFF: # is turning on
|
||||
on(eid, event)
|
||||
|
||||
_LOGGER.debug("end of turn_on_off_event_listener()")
|
||||
|
||||
async def state_changed_event_listener(self, event: Event) -> None:
|
||||
"""Track 'state_changed' events."""
|
||||
entity_id = event.data.get(ATTR_ENTITY_ID, "")
|
||||
|
|
|
|||
|
|
@ -590,6 +590,7 @@ async def test_manual_control(
|
|||
|
||||
async def update():
|
||||
await switch._update_attrs_and_maybe_adapt_lights(context=context, transition=0)
|
||||
await asyncio.gather(*switch.manager.adaptation_tasks)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
async def turn_light(state, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue