Expand error msg on why yaml defined entities can't be changed from UI (#6689)

This commit is contained in:
Marc Randolph 2020-09-30 03:21:24 -05:00 committed by GitHub
parent d0c86ea2f7
commit 26162815c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -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`
<div class="content">
${this.hass.localize("ui.dialogs.entity_registry.no_unique_id")}
${this.hass.localize(
"ui.dialogs.entity_registry.no_unique_id",
"faq_link",
html`<a
href="${documentationUrl(
this.hass,
"/faq/unique_id"
)}"
target="_blank"
rel="noreferrer"
>${this.hass.localize(
"ui.dialogs.entity_registry.faq"
)}</a
>`
)}
</div>
`;
case "tab-related":

View File

@ -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",