mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Fix device class icon not showing in entities config page (#19854)
This commit is contained in:
parent
a6d73f7615
commit
267fc3743d
@ -198,8 +198,9 @@ export const entryIcon = async (
|
||||
if (entry.icon) {
|
||||
return entry.icon;
|
||||
}
|
||||
const stateObj = hass.states[entry.entity_id] as HassEntity | undefined;
|
||||
const domain = computeDomain(entry.entity_id);
|
||||
return getEntityIcon(hass, domain, undefined, undefined, entry);
|
||||
return getEntityIcon(hass, domain, stateObj, undefined, entry);
|
||||
};
|
||||
|
||||
const getEntityIcon = async (
|
||||
|
Loading…
x
Reference in New Issue
Block a user