Add descriptions to automation page sections (#19081)

* Add descriptions to automation page sections

* add name key

* Update manual-automation-editor.ts

* hide explanation if there is content

* Update src/translations/en.json

* hide when advanced
This commit is contained in:
Bram Kragten
2023-12-21 21:01:11 +01:00
committed by GitHub
parent 521c0b58c8
commit 7b6b5724e1
4 changed files with 52 additions and 9 deletions

View File

@@ -538,7 +538,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
value.valid
? ""
: html`${this.hass.localize(
`ui.panel.config.automation.editor.${key}s.header`
`ui.panel.config.automation.editor.${key}s.name`
)}:
${value.error}<br />`
);