diff --git a/tests/components/flux_led/test_init.py b/tests/components/flux_led/test_init.py index 8e3bb03dca2..663b46f65a7 100644 --- a/tests/components/flux_led/test_init.py +++ b/tests/components/flux_led/test_init.py @@ -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