device state setting fix 12

This commit is contained in:
2025-11-19 11:24:32 +01:00
parent 168b2c4b12
commit c2dcb733d8

View File

@@ -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';
} }
} }