mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Allow empty state name. (#247)
This commit is contained in:
parent
f4c59e1eff
commit
58673280be
@ -394,7 +394,7 @@ window.hassUtil.computeDomain = function (stateObj) {
|
||||
};
|
||||
|
||||
window.hassUtil.computeStateName = function (stateObj) {
|
||||
if (!stateObj._entityDisplay) {
|
||||
if (stateObj._entityDisplay === undefined) {
|
||||
stateObj._entityDisplay = (
|
||||
stateObj.attributes.friendly_name ||
|
||||
window.HAWS.extractObjectId(stateObj.entity_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user