fix error messages of addon mount picker (#16694)

This commit is contained in:
Bram Kragten 2023-05-31 15:00:32 +02:00 committed by GitHub
parent 5217d427e9
commit 36268d5048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -58,12 +58,12 @@ class HaAddonPicker extends LitElement {
}
protected render() {
if (!this._addons) {
return nothing;
}
if (this._error) {
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
}
if (!this._addons) {
return nothing;
}
return html`
<ha-combo-box
.hass=${this.hass}

View File

@ -45,12 +45,12 @@ class HaMountPicker extends LitElement {
}
protected render() {
if (!this._mounts) {
return nothing;
}
if (this._error) {
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
}
if (!this._mounts) {
return nothing;
}
const dataDiskOption = html`<ha-list-item
graphic="icon"
.value=${__BACKUP_DATA_DISK__}