Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Oct 15, 2023
1 parent 43da71f commit b4c3a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/peaqhvac/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"iot_class": "calculated",
"issue_tracker": "https://github.com/elden1337/hass-peaqhvac/issues",
"requirements": [
"peaqevcore==19.5.3"
"peaqevcore==19.5.4"
],
"version": "2.0.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def offset_per_day(
ret = {}
_max_today = max(day_values.values(), default=0)
_min_today = min(day_values.values(), default=0)
if tolerance is not None and _max_today != 0 and _max_today != _min_today:
if tolerance is not None and _max_today != _min_today:
try:
factor = max(abs(_max_today), abs(_min_today)) / tolerance
except ZeroDivisionError:
Expand Down

0 comments on commit b4c3a23

Please sign in to comment.