@@ -241,24 +251,23 @@ export abstract class HuiElementEditor
extends LitElement {
`}
${this._guiSupported === false && this.configElementType
? html`
-
+
${this.hass.localize("ui.errors.config.editor_not_available", {
type: this.configElementType,
})}
-
+
`
- : ""}
+ : nothing}
${this.hasError
? html`
-
+
${this.hass.localize("ui.errors.config.error_detected")}:
-
${this._errors!.map((error) => html`- ${error}
`)}
-
+
`
- : ""}
+ : nothing}
${this.hasWarning
? html`
extends LitElement {
)}:"
>
${this._warnings!.length > 0 && this._warnings![0] !== undefined
- ? html`
- ${this._warnings!.map(
- (warning) => html`- ${warning}
`
- )}
-
`
- : ""}
+ ? html`
+
+ ${this._warnings!.map(
+ (warning) => html`- ${warning}
`
+ )}
+
+ `
+ : nothing}
${this.hass.localize("ui.errors.config.edit_in_yaml_supported")}
`
- : ""}
+ : nothing}