Create a backup on add-on auto update (#3464)

This commit is contained in:
Pascal Vizeli 2022-02-24 20:26:57 +01:00 committed by GitHub
parent 36f4e494a2
commit 71903d906b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ class Tasks(CoreSysAttributes):
# avoid issue on slow IO
_LOGGER.info("Add-on auto update process %s", addon.slug)
try:
await addon.update()
await addon.update(backup=True)
except AddonsError:
_LOGGER.error("Can't auto update Add-on %s", addon.slug)