Skip to content

Commit 099edfa

Browse files
authored
Fix flux_led tests opening sockets (home-assistant#156458)
1 parent aa31df0 commit 099edfa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/components/flux_led/test_init.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,10 @@ async def test_time_sync_startup_and_next_day(hass: HomeAssistant) -> None:
238238
assert config_entry.state is ConfigEntryState.LOADED
239239

240240
assert len(bulb.async_set_time.mock_calls) == 1
241-
async_fire_time_changed(hass, utcnow() + timedelta(hours=24))
242-
await hass.async_block_till_done()
241+
242+
with _patch_discovery(), _patch_wifibulb(device=bulb):
243+
async_fire_time_changed(hass, utcnow() + timedelta(hours=24))
244+
await hass.async_block_till_done()
243245
assert len(bulb.async_set_time.mock_calls) == 2
244246

245247

0 commit comments

Comments
 (0)