From 98779a48b17e62644990f799cff30e5240e3b555 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Thu, 29 Feb 2024 11:22:21 -0500 Subject: [PATCH] Fix check used for addon auto update (#4933) * Fix check used for addon auto update * Move timedelta to other side Co-authored-by: Stefan Agner --------- Co-authored-by: Stefan Agner --- supervisor/misc/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/misc/tasks.py b/supervisor/misc/tasks.py index af8558b75..deea99dcd 100644 --- a/supervisor/misc/tasks.py +++ b/supervisor/misc/tasks.py @@ -106,7 +106,7 @@ class Tasks(CoreSysAttributes): addon.latest_version, ) # Delay auto-updates for a day in case of issues - if utcnow() + timedelta(days=1) > addon.latest_version_timestamp: + if utcnow() < addon.latest_version_timestamp + timedelta(days=1): continue if not addon.test_update_schema(): _LOGGER.warning(