Skip to content

Commit

Permalink
add name key
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Dec 18, 2023
1 parent 9058789 commit 95b0c71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/panels/config/automation/ha-automation-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export class HaAutomationEditor 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 />`
);
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/script/ha-script-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 />`
);
Expand Down
3 changes: 3 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2442,6 +2442,7 @@
"edit_ui": "Edit in visual editor",
"copy_to_clipboard": "Copy to clipboard",
"triggers": {
"name": "Triggers",
"header": "When",
"description": "This list of triggers is what starts your automation. A trigger is a specific event happening in your home, for example: ''When the sun sets''.",
"learn_more": "Learn more about triggers",
Expand Down Expand Up @@ -2637,6 +2638,7 @@
}
},
"conditions": {
"name": "Conditions",
"header": "And if",
"description": "This list of conditions needs to be satisfied for the automation to run. A condition can be satisfied or not at any given time, for example: ''If {user} is home''. You can use building blocks to create more complex conditions.",
"learn_more": "Learn more about conditions",
Expand Down Expand Up @@ -2774,6 +2776,7 @@
}
},
"actions": {
"name": "Actions",
"header": "Then do",
"description": "This list of actions will be performed in sequence when the automation runs. An action usually controls one of your areas, devices, or entities, for example: 'Turn on the lights'. You can use building blocks to create more complex sequences of actions.",
"learn_more": "Learn more about actions",
Expand Down

0 comments on commit 95b0c71

Please sign in to comment.