mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Fix issue with entity list not showing any primary text if friendly name is empty string
This commit is contained in:
parent
07fc9b98cc
commit
b3c945d573
@ -298,7 +298,7 @@ export class QuickBar extends LitElement {
|
|||||||
private _generateEntityItems(): QuickBarItem[] {
|
private _generateEntityItems(): QuickBarItem[] {
|
||||||
return Object.keys(this.hass.states)
|
return Object.keys(this.hass.states)
|
||||||
.map((entityId) => ({
|
.map((entityId) => ({
|
||||||
text: computeStateName(this.hass.states[entityId]),
|
text: computeStateName(this.hass.states[entityId]) || entityId,
|
||||||
altText: entityId,
|
altText: entityId,
|
||||||
icon: domainIcon(computeDomain(entityId), this.hass.states[entityId]),
|
icon: domainIcon(computeDomain(entityId), this.hass.states[entityId]),
|
||||||
action: () => fireEvent(this, "hass-more-info", { entityId }),
|
action: () => fireEvent(this, "hass-more-info", { entityId }),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user