Skip to content

Commit 9c0b649

Browse files
Fix crash around charge curve (#2816)
* Fix inverter crash * Missing settings * [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>
1 parent 25e9b93 commit 9c0b649

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/predbat/inverter.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ def find_charge_curve(self, discharge):
527527

528528
final_curve = {}
529529
final_curve_count = {}
530+
soc_kwh = []
531+
charge_rate = []
532+
battery_power = []
533+
predbat_status = []
530534

531535
if discharge:
532536
max_power = int(self.battery_rate_max_discharge * MINUTE_WATT)

‎apps/predbat/predbat.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import requests
2626
import asyncio
2727

28-
THIS_VERSION = "v8.26.2"
28+
THIS_VERSION = "v8.26.3"
2929

3030
# fmt: off
3131
PREDBAT_FILES = ["predbat.py", "config.py", "prediction.py", "gecloud.py","utils.py", "inverter.py", "ha.py", "download.py", "unit_test.py", "web.py", "web_helper.py", "predheat.py", "futurerate.py", "octopus.py", "solcast.py","execute.py", "plan.py", "fetch.py", "output.py", "userinterface.py", "energydataservice.py", "alertfeed.py", "compare.py", "db_manager.py", "db_engine.py", "plugin_system.py", "ohme.py", "components.py", "fox.py", "carbon.py"]

0 commit comments

Comments
 (0)