Skip to content

Commit

Permalink
Small automation editor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Dec 27, 2023
1 parent d6684c5 commit 12e6619
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
14 changes: 8 additions & 6 deletions src/panels/config/automation/ha-automation-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class HaAutomationPicker extends LitElement {
>
</ha-button-related-filter-menu>
${!this.automations.length
? html` <div class="empty" slot="empty">
? html`<div class="empty" slot="empty">
<ha-svg-icon .path=${mdiRobotHappy}></ha-svg-icon>
<h1>
${this.hass.localize(
Expand All @@ -338,7 +338,9 @@ class HaAutomationPicker extends LitElement {
<p>
${this.hass.localize(
"ui.panel.config.automation.picker.empty_text_1"
)}<br />
)}
</p>
<p>
${this.hass.localize(
"ui.panel.config.automation.picker.empty_text_2"
)}
Expand All @@ -349,9 +351,7 @@ class HaAutomationPicker extends LitElement {
rel="noreferrer"
>
<ha-button>
${this.hass.localize(
"ui.panel.config.automation.picker.learn_more"
)}
${this.hass.localize("ui.panel.config.common.learn_more")}
</ha-button>
</a>
</div>`
Expand Down Expand Up @@ -513,7 +513,9 @@ class HaAutomationPicker extends LitElement {
target="_blank"
rel="noreferrer"
>
${this.hass.localize("ui.panel.config.common.learn_more")}
${this.hass.localize(
"ui.panel.config.automation.picker.learn_more"
)}
</a>
</p>
`,
Expand Down
6 changes: 2 additions & 4 deletions src/panels/config/scene/ha-scene-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ class HaSceneDashboard extends LitElement {
rel="noreferrer"
>
<ha-button>
${this.hass.localize(
"ui.panel.config.scene.picker.learn_more"
)}
${this.hass.localize("ui.panel.config.common.learn_more")}
</ha-button>
</a>
</div>`
Expand Down Expand Up @@ -370,7 +368,7 @@ class HaSceneDashboard extends LitElement {
target="_blank"
rel="noreferrer"
>
${this.hass.localize("ui.panel.config.common.learn_more")}
${this.hass.localize("ui.panel.config.scene.picker.learn_more")}
</a>
</p>
`,
Expand Down
6 changes: 2 additions & 4 deletions src/panels/config/script/ha-script-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ class HaScriptPicker extends LitElement {
rel="noreferrer"
>
<ha-button>
${this.hass.localize(
"ui.panel.config.script.picker.learn_more"
)}
${this.hass.localize("ui.panel.config.common.learn_more")}
</ha-button>
</a>
</div>`
Expand Down Expand Up @@ -420,7 +418,7 @@ class HaScriptPicker extends LitElement {
target="_blank"
rel="noreferrer"
>
${this.hass.localize("ui.panel.config.common.learn_more")}
${this.hass.localize("ui.panel.config.script.picker.learn_more")}
</a>
</p>
`,
Expand Down
2 changes: 1 addition & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@
"preset_mode": "Preset mode"
},
"description": {
"picker": "If something happens to a device. Great way to start."
"picker": "If a device is in a certain state. Great way to start."
}
},
"not": {
Expand Down

0 comments on commit 12e6619

Please sign in to comment.