${this._errors || stateObj?.state === UNAVAILABLE
? html`
${this._errors || this._validationErrors}
`
: ""}
${this._readOnly
? html`
${this.hass.localize("ui.panel.config.script.editor.read_only")}
${this.hass.localize("ui.panel.config.script.editor.migrate")}
`
: ""}
${this._mode === "gui"
? html`
${this._config
? html`
${useBlueprint
? html`
`
: html`
`}
`
: ""}
`
: this._mode === "yaml"
? html`
${this.hass.localize(
"ui.panel.config.automation.editor.copy_to_clipboard"
)}
`
: ``}