mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix more info with unnamed entity (#13859)
This commit is contained in:
parent
cc76a6c5ed
commit
8d5c36a96a
@ -90,7 +90,7 @@ export class MoreInfoDialog extends LitElement {
|
||||
const stateObj = this.hass.states[entityId];
|
||||
|
||||
const domain = computeDomain(entityId);
|
||||
const name = stateObj ? computeStateName(stateObj) : entityId;
|
||||
const name = (stateObj && computeStateName(stateObj)) || entityId;
|
||||
const tabs = this._getTabs(entityId, this.hass.user!.is_admin);
|
||||
|
||||
return html`
|
||||
|
Loading…
x
Reference in New Issue
Block a user