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: