From 8082f737a7752f2e89e9a796c56a379a9623ce90 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Tue, 3 Dec 2024 12:05:25 +0000 Subject: [PATCH] Smooth library updates --- custom_components/battery_notes/library_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/battery_notes/library_updater.py b/custom_components/battery_notes/library_updater.py index 18b2ea7a..f1dea68a 100644 --- a/custom_components/battery_notes/library_updater.py +++ b/custom_components/battery_notes/library_updater.py @@ -56,7 +56,7 @@ def __init__(self, hass: HomeAssistant): # Fire the library check every 24 hours from now async_track_utc_time_change( - hass, self.timer_update, hour=datetime.now().hour, minute=1, second=1 + hass, self.timer_update, hour=datetime.now().hour, minute=datetime.now().minute, second=1 ) @callback