From 84327f203cecee4f6a01770d0bc8a64db29078d0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Mar 2023 16:52:17 -1000 Subject: [PATCH] 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 --- homeassistant/components/flux_led/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/flux_led/__init__.py b/homeassistant/components/flux_led/__init__.py index 86b73c762fb..e6f89536baf 100644 --- a/homeassistant/components/flux_led/__init__.py +++ b/homeassistant/components/flux_led/__init__.py @@ -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