From 4f2aec46cd5124239f358a9df80b15bc68919767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Eld=C3=A9n?= Date: Wed, 11 Sep 2024 22:44:13 +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 ddd3d32..a44cfe1 100644 --- a/custom_components/peaqhvac/service/hvac/house_heater/temperature_helper.py +++ b/custom_components/peaqhvac/service/hvac/house_heater/temperature_helper.py @@ -51,7 +51,7 @@ def get_temp_trend_offset( ret = max(round(new_temp_diff, 1), 0) else: ret = min(round(new_temp_diff, 1), 0) - return min((round(ret / 2, 1)), 1) * -1 + return min((round(ret / 2, 1)), 1) * (-1 if ret > 0 else 1) def _temp_extremas_return(diffs, tolerance) -> float: