From c416daeb92efd271387f3e03efb3604bd779f31a Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Mon, 26 Aug 2024 16:30:35 -0400 Subject: [PATCH] Expand the ZHA channel selection dialog text (#21801) * Expand the ZHA channel selection dialog text * Drop unnecessary `It is recommended to` * Update src/translations/en.json Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com> * Replace `hui-warning` with just `ha-alert` * Avoid creating translations for just channel numbers --------- Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com> --- .../zha/dialog-zha-change-channel.ts | 21 +++++++++++++++++-- src/translations/en.json | 7 +++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/panels/config/integrations/integration-panels/zha/dialog-zha-change-channel.ts b/src/panels/config/integrations/integration-panels/zha/dialog-zha-change-channel.ts index 13e4bc0d46..cc7a8701cf 100644 --- a/src/panels/config/integrations/integration-panels/zha/dialog-zha-change-channel.ts +++ b/src/panels/config/integrations/integration-panels/zha/dialog-zha-change-channel.ts @@ -8,6 +8,7 @@ import { showAlertDialog } from "../../../../../dialogs/generic/show-dialog-box" import { createCloseHeading } from "../../../../../components/ha-dialog"; import { HomeAssistant } from "../../../../../types"; import "../../../../../components/buttons/ha-progress-button"; +import "../../../../../components/ha-alert"; import "../../../../../components/ha-button"; import "../../../../../components/ha-select"; import "../../../../../components/ha-list-item"; @@ -70,10 +71,22 @@ class DialogZHAChangeChannel extends LitElement implements HassDialog { this.hass.localize("ui.panel.config.zha.change_channel_dialog.title") )} > -
+
+ ${this.hass.localize( + "ui.panel.config.zha.change_channel_dialog.description" + )} +
+ ++ ${this.hass.localize( + "ui.panel.config.zha.change_channel_dialog.smart_explanation" + )}
@@ -90,7 +103,11 @@ class DialogZHAChangeChannel extends LitElement implements HassDialog {
${VALID_CHANNELS.map(
(newChannel) =>
html`