Translate message that script/automation is unavailable (#17066)

This commit is contained in:
Philip Allgaier
2023-06-28 14:38:10 +02:00
committed by GitHub
parent c90c4d88af
commit 32a9b13af0
3 changed files with 8 additions and 2 deletions

View File

@@ -315,7 +315,9 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
<ha-alert
alert-type="error"
.title=${stateObj?.state === UNAVAILABLE
? "Script unavailable"
? this.hass.localize(
"ui.panel.config.script.editor.unavailable"
)
: undefined}
>
${this._errors || this._validationErrors}