mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +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) {
|
window.hassUtil.computeStateName = function (stateObj) {
|
||||||
if (!stateObj._entityDisplay) {
|
if (stateObj._entityDisplay === undefined) {
|
||||||
stateObj._entityDisplay = (
|
stateObj._entityDisplay = (
|
||||||
stateObj.attributes.friendly_name ||
|
stateObj.attributes.friendly_name ||
|
||||||
window.HAWS.extractObjectId(stateObj.entity_id)
|
window.HAWS.extractObjectId(stateObj.entity_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user