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