mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 17:15:11 +00:00
Fix flux_led tests opening sockets (#156458)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user