Allow empty state name. (#247)

This commit is contained in:
Andrey 2017-03-24 09:39:57 +03:00 committed by Paulus Schoutsen
parent f4c59e1eff
commit 58673280be

View File

@ -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)