mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix flaky tests in device_sun_light_trigger (#129871)
This commit is contained in:
parent
e6c20333b3
commit
fa30100160
@ -177,6 +177,9 @@ async def test_lights_turn_on_when_coming_home_after_sun_set_person(
|
||||
hass: HomeAssistant, freezer: FrozenDateTimeFactory
|
||||
) -> None:
|
||||
"""Test lights turn on when coming home after sun set."""
|
||||
# Ensure all setup tasks are done (avoid flaky tests)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
device_1 = f"{DEVICE_TRACKER_DOMAIN}.device_1"
|
||||
device_2 = f"{DEVICE_TRACKER_DOMAIN}.device_2"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user