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:
parent
56454c8580
commit
3241912eff
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue