Skip to content

Commit

Permalink
Fix typo with set_charge_rate control (#1680)
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Dec 1, 2024
1 parent 1532c76 commit cae90e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/predbat/inverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ def adjust_charge_rate(self, new_rate, notify=True):
new_rate = int(new_rate + 0.5)
current_rate = self.get_current_charge_rate()

if abs(current_rate - new_rate) < (self.battery_rate_max_charge * MINUTE_WATT / 24):
if abs(current_rate - new_rate) > (self.battery_rate_max_charge * MINUTE_WATT / 24):
self.base.log("Inverter {} current charge rate is {}W and new target is {}W".format(self.id, current_rate, new_rate))
if self.rest_data:
self.rest_setChargeRate(new_rate)
Expand Down
2 changes: 1 addition & 1 deletion apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import asyncio
import json

THIS_VERSION = "v8.8.0"
THIS_VERSION = "v8.8.1"

# fmt: off
PREDBAT_FILES = ["predbat.py", "config.py", "prediction.py", "gecloud.py","utils.py", "inverter.py", "ha.py", "download.py", "unit_test.py", "web.py", "predheat.py", "futurerate.py", "octopus.py", "solcast.py","execute.py", "plan.py", "fetch.py", "output.py", "userinterface.py"]
Expand Down

0 comments on commit cae90e4

Please sign in to comment.