From 894205eff78a62001cf84ecc5ef14b339229553c Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Mon, 15 Jan 2024 15:37:59 +0100 Subject: [PATCH] Display that entity is disabled in more info (#19378) * Display that entity is disabled in more info * Correct formatting --- src/dialogs/more-info/ha-more-info-info.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dialogs/more-info/ha-more-info-info.ts b/src/dialogs/more-info/ha-more-info-info.ts index ca05ec75d2..99e8a95448 100644 --- a/src/dialogs/more-info/ha-more-info-info.ts +++ b/src/dialogs/more-info/ha-more-info-info.ts @@ -45,9 +45,13 @@ export class MoreInfoInfo extends LitElement {
${!stateObj ? html` - ${this.hass.localize( - "ui.dialogs.entity_registry.editor.unavailable" - )} + ${this.entry?.disabled_by + ? this.hass.localize( + "ui.dialogs.entity_registry.editor.entity_disabled" + ) + : this.hass.localize( + "ui.dialogs.entity_registry.editor.unavailable" + )} ` : nothing} ${stateObj?.attributes.restored && entityRegObj