diff --git a/apps/ui/templates/device.html b/apps/ui/templates/device.html index 1baaafe..17ee630 100644 --- a/apps/ui/templates/device.html +++ b/apps/ui/templates/device.html @@ -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'; } }