Skip to content

Commit

Permalink
Update temperature_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Oct 26, 2023
1 parent 0535a50 commit cd824a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cd824a3

Please sign in to comment.