Improve entity registry errors display (#8208)

This commit is contained in:
Philip Allgaier 2021-01-22 15:50:11 +01:00 committed by GitHub
parent 870f0bcbb1
commit 6f4dbdc959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,8 +141,8 @@ export class EntityRegistrySettingsHelper extends LitElement {
}
const stateObj = this.hass.states[this.entry.entity_id];
return html`
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
<div class="form">
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
${!this._componentLoaded
? this.hass.localize(
"ui.dialogs.helper_settings.platform_not_loaded",
@ -268,6 +268,7 @@ export class EntityRegistrySettingsHelper extends LitElement {
}
.error {
color: var(--error-color);
margin-bottom: 8px;
}
.row {
margin-top: 8px;