Skip to content

Commit

Permalink
Update target_temp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Nov 18, 2023
1 parent d247e04 commit 8d82c1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/peaqhvac/service/hub/target_temp.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def _init_tolerances(self, preset: HvacPresets = HvacPresets.Normal):
self._max_tolerance = _tolerances[1]

def adjusted_tolerances(self, offset: int) -> Tuple[float, float]:
if abs(offset) <2:
return min_tolerance, max_tolerance
_max_tolerance = (
self.max_tolerance + (offset / 15) if offset > 0 else self.max_tolerance
)
Expand Down

0 comments on commit 8d82c1b

Please sign in to comment.