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