mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Display entity friendly name for disabled entities (#13696)
This commit is contained in:
parent
032f497687
commit
cfabaa8716
@ -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