From 12e66191c532ec82043e2c4ecbf3c8e3acaa79bb Mon Sep 17 00:00:00 2001
From: Bram Kragten
Date: Wed, 27 Dec 2023 20:22:39 +0100
Subject: [PATCH] Small automation editor fixes
---
.../config/automation/ha-automation-picker.ts | 14 ++++++++------
src/panels/config/scene/ha-scene-dashboard.ts | 6 ++----
src/panels/config/script/ha-script-picker.ts | 6 ++----
src/translations/en.json | 2 +-
4 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/src/panels/config/automation/ha-automation-picker.ts b/src/panels/config/automation/ha-automation-picker.ts
index 46974adb07ce..a29a88d6a35c 100644
--- a/src/panels/config/automation/ha-automation-picker.ts
+++ b/src/panels/config/automation/ha-automation-picker.ts
@@ -328,7 +328,7 @@ class HaAutomationPicker extends LitElement {
>
${!this.automations.length
- ? html`
+ ? html`
${this.hass.localize(
@@ -338,7 +338,9 @@ class HaAutomationPicker extends LitElement {
${this.hass.localize(
"ui.panel.config.automation.picker.empty_text_1"
- )}
+ )}
+
+
${this.hass.localize(
"ui.panel.config.automation.picker.empty_text_2"
)}
@@ -349,9 +351,7 @@ class HaAutomationPicker extends LitElement {
rel="noreferrer"
>
- ${this.hass.localize(
- "ui.panel.config.automation.picker.learn_more"
- )}
+ ${this.hass.localize("ui.panel.config.common.learn_more")}
`
@@ -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"
+ )}
`,
diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts
index 09b35fcad172..0d3f9a7a0561 100644
--- a/src/panels/config/scene/ha-scene-dashboard.ts
+++ b/src/panels/config/scene/ha-scene-dashboard.ts
@@ -265,9 +265,7 @@ class HaSceneDashboard extends LitElement {
rel="noreferrer"
>
- ${this.hass.localize(
- "ui.panel.config.scene.picker.learn_more"
- )}
+ ${this.hass.localize("ui.panel.config.common.learn_more")}
`
@@ -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")}
`,
diff --git a/src/panels/config/script/ha-script-picker.ts b/src/panels/config/script/ha-script-picker.ts
index 06fca323d1cd..ac2ace77675e 100644
--- a/src/panels/config/script/ha-script-picker.ts
+++ b/src/panels/config/script/ha-script-picker.ts
@@ -294,9 +294,7 @@ class HaScriptPicker extends LitElement {
rel="noreferrer"
>
- ${this.hass.localize(
- "ui.panel.config.script.picker.learn_more"
- )}
+ ${this.hass.localize("ui.panel.config.common.learn_more")}
`
@@ -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")}
`,
diff --git a/src/translations/en.json b/src/translations/en.json
index 6d4253fd3f8f..e53767582c98 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -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": {