mirror of https://github.com/home-assistant/core
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 3241912eff
.
* Change time set to not be during DST switch
This commit is contained in:
parent
1c57339ec3
commit
84327f203c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue