device state setting fix 12
This commit is contained in:
@@ -768,12 +768,12 @@
|
|||||||
if (currentTemp && deviceState.current_temp != null) {
|
if (currentTemp && deviceState.current_temp != null) {
|
||||||
currentTemp.textContent = deviceState.current_temp.toFixed(1) + '°C';
|
currentTemp.textContent = deviceState.current_temp.toFixed(1) + '°C';
|
||||||
}
|
}
|
||||||
if (targetTemp && deviceState.target_temp != null) {
|
if (targetTemp && deviceState.target != null) {
|
||||||
targetTemp.textContent = deviceState.target_temp.toFixed(1) + '°C';
|
targetTemp.textContent = deviceState.target.toFixed(1) + '°C';
|
||||||
}
|
}
|
||||||
if (tempSlider && deviceState.target_temp != null) {
|
if (tempSlider && deviceState.target != null) {
|
||||||
tempSlider.value = deviceState.target_temp;
|
tempSlider.value = deviceState.target;
|
||||||
tempValue.textContent = deviceState.target_temp.toFixed(1) + '°C';
|
tempValue.textContent = deviceState.target.toFixed(1) + '°C';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user