From a27dd1e7f12cd9f873ee887a291e21de0a6f2e91 Mon Sep 17 00:00:00 2001 From: Zack Date: Tue, 15 Mar 2022 14:47:15 -0500 Subject: [PATCH] Add Description of chosen --- .../entities/entity-registry-settings.ts | 41 +++++++++++++------ src/translations/en.json | 1 - 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/panels/config/entities/entity-registry-settings.ts b/src/panels/config/entities/entity-registry-settings.ts index 5a22bec551..a11803f6db 100644 --- a/src/panels/config/entities/entity-registry-settings.ts +++ b/src/panels/config/entities/entity-registry-settings.ts @@ -285,13 +285,39 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) { + ${this._disabledBy !== null + ? html` +
+ ${this.hass.localize( + "ui.dialogs.entity_registry.editor.enabled_description" + )} +
+ ` + : this._hiddenBy !== null + ? html` +
+ ${this.hass.localize( + "ui.dialogs.entity_registry.editor.hidden_description" + )} +
+ ` + : ""} ${this.entry.device_id ? html` -

+ +

${this.hass.localize( "ui.dialogs.entity_registry.editor.area_note" )} -

+
${this._areaId ? html`${this.hass.localize( @@ -305,15 +331,6 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) { )}` : ""} - ` : ""} @@ -515,7 +532,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) { .label { margin-top: 8px; } - p { + .secondary { margin: 8px 0; width: 340px; } diff --git a/src/translations/en.json b/src/translations/en.json index 9a3255711b..fe235befe7 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -106,7 +106,6 @@ "hidden_by": { "user": "User", "integration": "Integration", - "config_entry": "Config entry", "device": "Device" } },