Don't backup core for supervisor/os updates (#10886)
This commit is contained in:
parent
5ec37a35f1
commit
b7665bef6f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue