Skip to content

Commit c3fa022

Browse files
Fix utcnow
1 parent b86d71b commit c3fa022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/battery_notes/library_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, hass: HomeAssistant):
6363
self._client = LibraryUpdaterClient(session=async_get_clientsession(hass))
6464

6565
# Fire the library check every 24 hours from just before now
66-
refresh_time = dt_util.utcnow - timedelta(hours=0, minutes=1)
66+
refresh_time = dt_util.utcnow() - timedelta(hours=0, minutes=1)
6767
async_track_utc_time_change(
6868
hass,
6969
self.timer_update,

0 commit comments

Comments
 (0)