Fix flux_led set time to not happen during DST switch (#89559)

* 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

* Revert "Fix flux_led set time test"

This reverts commit 3241912eff951c8cd5fe45dbff381f0ca6b8926c.

* Change time set to not be during DST switch
This commit is contained in:
J. Nick Koston 2023-03-11 16:52:17 -10:00 committed by GitHub
parent 1c57339ec3
commit 84327f203c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
await device.async_set_time()
await _async_sync_time() # set at startup
entry.async_on_unload(async_track_time_change(hass, _async_sync_time, 2, 40, 30))
entry.async_on_unload(async_track_time_change(hass, _async_sync_time, 3, 40, 30))
# There must not be any awaits between here and the return
# to avoid a race condition where the add_update_listener is not