Fix flux_led tests opening sockets (#156458)

This commit is contained in:
Erik Montnemery
2025-11-13 20:39:56 +01:00
committed by GitHub
parent aa31df0fd5
commit 099edfac20

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