From c2dcb733d8a642a2a63ca8be9395742c08cbe748 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 19 Nov 2025 11:24:32 +0100 Subject: [PATCH] device state setting fix 12 --- apps/ui/templates/device.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'; } }