mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-15 07:25:54 +00:00
Fix ES2015 syntax in hass-util
This commit is contained in:
@@ -431,7 +431,7 @@ window.hassUtil.computeStateState = function (stateObj) {
|
||||
stateObj._stateDisplay = stateObj.state.replace(/_/g, ' ');
|
||||
|
||||
if (stateObj.attributes.unit_of_measurement) {
|
||||
stateObj._stateDisplay += ` ${stateObj.attributes.unit_of_measurement}`;
|
||||
stateObj._stateDisplay += ' ' + stateObj.attributes.unit_of_measurement;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user