We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e231d5 commit 91f62edCopy full SHA for 91f62ed
device-types.js
@@ -340,7 +340,7 @@ const temperatureValue = (val) => {
340
if (!isValid) {
341
return false
342
}
343
- return { key: 'temperature', value: floatValue }
+ return { key: 'temperature', value: Math.round(floatValue * 10) / 10 } //23.456789 --> 23.4
344
345
346
const temperatureScale = (val) => {
@@ -676,6 +676,7 @@ const types = {
676
thermostatMode,
677
targetTemperature: wrapValidator(temperatureValue, 'targetTemperature'),
678
targetScale: wrapValidator(temperatureScale, 'targetScale'),
679
+ powerState,
680
},
681
decorator: defaultDecorator,
682
0 commit comments