mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Display entity friendly name for disabled entities (#13696)
This commit is contained in:
parent
782c95cf04
commit
9ea1f61971
@ -93,7 +93,10 @@ export const computeEntityRegistryName = (
|
||||
return entry.name;
|
||||
}
|
||||
const state = hass.states[entry.entity_id];
|
||||
return state ? computeStateName(state) : entry.entity_id;
|
||||
if (state) {
|
||||
return computeStateName(state);
|
||||
}
|
||||
return entry.original_name ? entry.original_name : entry.entity_id;
|
||||
};
|
||||
|
||||
export const getExtendedEntityRegistryEntry = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user