mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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}>
|
<div class="container" data-domain=${domain}>
|
||||||
${!stateObj
|
${!stateObj
|
||||||
? html`<ha-alert alert-type="warning">
|
? html`<ha-alert alert-type="warning">
|
||||||
${this.hass.localize(
|
${this.entry?.disabled_by
|
||||||
"ui.dialogs.entity_registry.editor.unavailable"
|
? this.hass.localize(
|
||||||
)}
|
"ui.dialogs.entity_registry.editor.entity_disabled"
|
||||||
|
)
|
||||||
|
: this.hass.localize(
|
||||||
|
"ui.dialogs.entity_registry.editor.unavailable"
|
||||||
|
)}
|
||||||
</ha-alert>`
|
</ha-alert>`
|
||||||
: nothing}
|
: nothing}
|
||||||
${stateObj?.attributes.restored && entityRegObj
|
${stateObj?.attributes.restored && entityRegObj
|
||||||
|
Loading…
x
Reference in New Issue
Block a user