Don't make button disabled on error (#10699)

This commit is contained in:
Joakim Sørensen 2021-11-25 16:56:57 +01:00 committed by GitHub
parent 921763b5f1
commit f70485bc49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,6 @@ class UpdateAvailableCard extends LitElement {
<span></span>
<ha-progress-button
.disabled=${!this._version ||
this._error !== undefined ||
(this._shouldCreateBackup &&
this.supervisor.info.state !== "running")}
@click=${this._update}
@ -306,6 +305,7 @@ class UpdateAvailableCard extends LitElement {
}
private async _update() {
this._error = undefined;
if (this._shouldCreateBackup) {
let backupArgs: HassioPartialBackupCreateParams;
if (this._updateType === "addon") {