Don't backup core for supervisor/os updates (#10886)

This commit is contained in:
Joakim Sørensen 2021-12-13 10:53:02 +01:00 committed by GitHub
parent 5ec37a35f1
commit b7665bef6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;