mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user