From 3241912eff951c8cd5fe45dbff381f0ca6b8926c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Mar 2023 09:36:24 -1000 Subject: [PATCH] Fix flux_led set time test If this test was run at the wrong time of the day it would not have been long enough for the set time to fire since it only happens at 2:40:30 in the morning local time --- tests/components/flux_led/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/flux_led/test_init.py b/tests/components/flux_led/test_init.py index 969704edd18..b5d70d823d1 100644 --- a/tests/components/flux_led/test_init.py +++ b/tests/components/flux_led/test_init.py @@ -236,7 +236,7 @@ async def test_time_sync_startup_and_next_day(hass: HomeAssistant) -> None: assert config_entry.state == ConfigEntryState.LOADED assert len(bulb.async_set_time.mock_calls) == 1 - async_fire_time_changed(hass, utcnow() + timedelta(hours=24)) + async_fire_time_changed(hass, utcnow() + timedelta(hours=48)) await hass.async_block_till_done() assert len(bulb.async_set_time.mock_calls) == 2