Fix ES2015 syntax in hass-util

This commit is contained in:
Paulus Schoutsen 2017-07-01 14:51:56 -07:00
parent d2a56655d0
commit dce362c4af

View File

@ -431,7 +431,7 @@ window.hassUtil.computeStateState = function (stateObj) {
stateObj._stateDisplay = stateObj.state.replace(/_/g, ' '); stateObj._stateDisplay = stateObj.state.replace(/_/g, ' ');
if (stateObj.attributes.unit_of_measurement) { if (stateObj.attributes.unit_of_measurement) {
stateObj._stateDisplay += ` ${stateObj.attributes.unit_of_measurement}`; stateObj._stateDisplay += ' ' + stateObj.attributes.unit_of_measurement;
} }
} }