Skip to content

Fix crash around charge curve - #2816

Merged
springfall2008 merged 3 commits into
mainfrom
fixes3
Oct 24, 2025
Merged

Fix crash around charge curve#2816
springfall2008 merged 3 commits into
mainfrom
fixes3

Conversation

@springfall2008

@springfall2008 springfall2008 commented Oct 24, 2025

Copy link
Copy Markdown
Owner

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the version number and adds initialization of empty lists to prevent a potential crash when processing charge curve data.

  • Updated version from v8.26.2 to v8.26.3
  • Added initialization of four list variables (soc_kwh, charge_rate, battery_power, predbat_status) in the find_charge_curve method

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/predbat/predbat.py Version number bumped to v8.26.3
apps/predbat/inverter.py Added initialization of four empty lists to prevent crash in charge curve processing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@springfall2008
springfall2008 merged commit 9c0b649 into main Oct 24, 2025
1 check passed
@springfall2008
springfall2008 deleted the fixes3 branch October 24, 2025 19:22
iangregory pushed a commit to iangregory/batpred that referenced this pull request Dec 3, 2025
* 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>
gcoan added a commit to gcoan/batpred that referenced this pull request Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants