mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
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 <stefan@agner.ch> --------- Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
9d4848ee77
commit
98779a48b1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user