Skip to content

Commit

Permalink
Fix charge freeze service call when it shouldn't be (#1834)
Browse files Browse the repository at this point in the history
* Fix charge freeze service call when it shouldn't be

* Version

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
springfall2008 and pre-commit-ci-lite[bot] authored Jan 2, 2025
1 parent 587ac38 commit d3bbc4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/predbat/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def execute_plan(self):
if self.charge_limit_best[0] == self.reserve:
inverter.adjust_charge_immediate(calc_percent_limit(max(inverter.soc_kw, inverter.reserve), inverter.soc_max), freeze=True)
else:
inverter.adjust_charge_immediate(target_soc, freeze=True)
inverter.adjust_charge_immediate(target_soc)
elif not inverter.inv_has_target_soc:
self.log("Setting charging SOC to 0 as we are not charging and inverter doesn't support target soc")
self.adjust_battery_target_multi(inverter, 0, isCharging, isExporting)
Expand Down
2 changes: 1 addition & 1 deletion apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import asyncio
import json

THIS_VERSION = "v8.9.2"
THIS_VERSION = "v8.9.3"

# 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 d3bbc4b

Please sign in to comment.