From cd824a3c8606a4b6a3235ea44c2ef430aeacad43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Eld=C3=A9n?= Date: Thu, 26 Oct 2023 15:52:29 +0200 Subject: [PATCH] Update temperature_helper.py --- .../peaqhvac/service/hvac/house_heater/temperature_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/peaqhvac/service/hvac/house_heater/temperature_helper.py b/custom_components/peaqhvac/service/hvac/house_heater/temperature_helper.py index 5ddc5e5e..1c8b6c37 100644 --- a/custom_components/peaqhvac/service/hvac/house_heater/temperature_helper.py +++ b/custom_components/peaqhvac/service/hvac/house_heater/temperature_helper.py @@ -57,7 +57,7 @@ def get_temp_trend_offset(self) -> float: ret = max(round(new_temp_diff, 1), 0) else: ret = min(round(new_temp_diff, 1), 0) - return ret * -1 + return min(ret,1) * -1 def _determine_tolerance(self, determinator, current_offset) -> float: tolerances = self._hub.sensors.set_temp_indoors.adjusted_tolerances(