Compare commits

...

1 Commits

Author SHA1 Message Date
Erik
d526c77132 Fix flux_led tests opening sockets 2025-11-12 16:44:12 +01:00

View File

@@ -238,8 +238,10 @@ async def test_time_sync_startup_and_next_day(hass: HomeAssistant) -> None:
assert config_entry.state is ConfigEntryState.LOADED
assert len(bulb.async_set_time.mock_calls) == 1
async_fire_time_changed(hass, utcnow() + timedelta(hours=24))
await hass.async_block_till_done()
with _patch_discovery(), _patch_wifibulb(device=bulb):
async_fire_time_changed(hass, utcnow() + timedelta(hours=24))
await hass.async_block_till_done()
assert len(bulb.async_set_time.mock_calls) == 2