From e3f51b34b52bb4bf017e65611e1af91c6f826b23 Mon Sep 17 00:00:00 2001 From: Proddy Date: Thu, 12 Jan 2023 17:40:18 +0100 Subject: [PATCH] added comments --- src/devices/thermostat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index f5129ad4a..1c2db6296 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -403,9 +403,9 @@ void Thermostat::add_ha_climate(std::shared_ptr hc) const { if (Helpers::hasValue(hc->selTemp) && is_readable(&hc->selTemp)) { if (Helpers::hasValue(hc->roomTemp) && is_readable(&hc->roomTemp)) { - hc->climate = 1; + hc->climate = 1; // use roomTemp as we have a sensor } else { - hc->climate = 0; + hc->climate = 0; // use selTemp, as there is no sensor present in the thermostat } } else { hc->climate = EMS_VALUE_UINT_NOTSET;