From 26162815c805662afcd531bfd01b1acafc6256a7 Mon Sep 17 00:00:00 2001 From: Marc Randolph Date: Wed, 30 Sep 2020 03:21:24 -0500 Subject: [PATCH] Expand error msg on why yaml defined entities can't be changed from UI (#6689) --- .../config/entities/dialog-entity-editor.ts | 17 ++++++++++++++++- src/translations/en.json | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/panels/config/entities/dialog-entity-editor.ts b/src/panels/config/entities/dialog-entity-editor.ts index bd9790ab09..87e3cb87da 100644 --- a/src/panels/config/entities/dialog-entity-editor.ts +++ b/src/panels/config/entities/dialog-entity-editor.ts @@ -27,6 +27,7 @@ import { getExtendedEntityRegistryEntry, } from "../../../data/entity_registry"; import { haStyleDialog } from "../../../resources/styles"; +import { documentationUrl } from "../../../util/documentation-url"; import type { HomeAssistant } from "../../../types"; import { PLATFORMS_WITH_SETTINGS_TAB } from "./const"; import "./entity-registry-settings"; @@ -170,7 +171,21 @@ export class DialogEntityEditor extends LitElement { } return html`
- ${this.hass.localize("ui.dialogs.entity_registry.no_unique_id")} + ${this.hass.localize( + "ui.dialogs.entity_registry.no_unique_id", + "faq_link", + html`${this.hass.localize( + "ui.dialogs.entity_registry.faq" + )}` + )}
`; case "tab-related": diff --git a/src/translations/en.json b/src/translations/en.json index f650ad9259..172ff5d918 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -471,7 +471,8 @@ "control": "Control", "related": "Related", "dismiss": "Dismiss", - "no_unique_id": "This entity does not have a unique ID, therefore its settings cannot be managed from the UI.", + "no_unique_id": "This entity does not have a unique ID, therefore its settings cannot be managed from the UI. See the {faq_link} for more detail.", + "faq": "documentation", "editor": { "name": "Name Override", "icon": "Icon Override",