await switch.manager.adaptation_tasks

This commit is contained in:
Bas Nijholt 2023-08-10 13:48:36 -07:00
commit eb572093a7
2 changed files with 1 additions and 2 deletions

View file

@ -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, "")

View file

@ -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):