mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 21:06:34 +00:00
Fix ES2015 syntax in hass-util
This commit is contained in:
parent
d2a56655d0
commit
dce362c4af
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user