From b7665bef6fdf8e9392b5241219768683c0e9f583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 13 Dec 2021 10:53:02 +0100 Subject: [PATCH] Don't backup core for supervisor/os updates (#10886) --- hassio/src/update-available/update-available-card.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hassio/src/update-available/update-available-card.ts b/hassio/src/update-available/update-available-card.ts index 5c1ef47b7f..4ad19d1c31 100644 --- a/hassio/src/update-available/update-available-card.ts +++ b/hassio/src/update-available/update-available-card.ts @@ -224,6 +224,9 @@ class UpdateAvailableCard extends LitElement { } get _shouldCreateBackup(): boolean { + if (this._updateType && !["core", "addon"].includes(this._updateType)) { + return false; + } const checkbox = this.shadowRoot?.querySelector("ha-checkbox"); if (checkbox) { return checkbox.checked;