- ${this.stateObj && this.stateObj.state === "off"
- ? html`
+ ${this.stateObj?.state === "off"
+ ? html`
+
${this.hass.localize(
"ui.panel.config.automation.editor.disabled"
)}
-
`
- : ""}
-
-
-
-
- ${this.hass.localize(
- "ui.panel.config.automation.editor.automation_settings"
- )}
-
-
- ${this.hass.localize(
- "ui.panel.config.automation.editor.modes.learn_more"
- )}
- `}
- >
- ${MODES.map(
- (mode) => html`
-
- ${this.hass.localize(
- `ui.panel.config.automation.editor.modes.${mode}`
- ) || mode}
-
- `
- )}
-
- ${this.config.mode && isMaxMode(this.config.mode)
- ? html`
-
-
- `
- : html``}
-
-
-
-
+