diff --git a/src/editor.js b/src/editor.js index d46986d..6ca654c 100644 --- a/src/editor.js +++ b/src/editor.js @@ -256,19 +256,41 @@ class ChConfigEditor extends LitElement { const editorWarning = html` `; - return html` - - ${text} ${this.templateExists(this.getConfig(option)) && templateWarn ? templateIcon : ''} - ${editorWarn ? editorWarning : ''} - - `; + if (ha_elements().hass.config.version > '0.112.0') { + return html` +
+ + + + ${text} ${this.templateExists(this.getConfig(option)) && templateWarn ? templateIcon : ''} + ${editorWarn ? editorWarning : ''} + +
+ `; + } else { + return html` + + ${text} ${this.templateExists(this.getConfig(option)) && templateWarn ? templateIcon : ''} + ${editorWarn ? editorWarning : ''} + + `; + } } render() { @@ -619,6 +641,10 @@ class ChConfigEditor extends LitElement { margin-bottom: 5px; width: 100%; } + switch-text { + padding-left: 10px; + vertical-align: bottom; + } ha-switch { padding-top: 16px; }