mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Display that entity is disabled in more info (#19378)
* Display that entity is disabled in more info * Correct formatting
This commit is contained in:
parent
64b0b64468
commit
894205eff7
@ -45,9 +45,13 @@ export class MoreInfoInfo extends LitElement {
|
||||
<div class="container" data-domain=${domain}>
|
||||
${!stateObj
|
||||
? html`<ha-alert alert-type="warning">
|
||||
${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"
|
||||
)}
|
||||
</ha-alert>`
|
||||
: nothing}
|
||||
${stateObj?.attributes.restored && entityRegObj
|
||||
|
Loading…
x
Reference in New Issue
Block a user