Skip to content

Fix GECloud and standalone PV, Fox cache updates#4076

Merged
springfall2008 merged 3 commits into
mainfrom
fix/ge_pv
Jun 16, 2026
Merged

Fix GECloud and standalone PV, Fox cache updates#4076
springfall2008 merged 3 commits into
mainfrom
fix/ge_pv

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 16, 2026 19:20

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.

⚠️ Not ready to approve

GECloud gateway-selection logic can incorrectly treat “1 battery + PV” as “multiple batteries,” causing it to switch to gateway-only polling for single-battery systems.

Pull request overview

This PR updates the GivEnergy Cloud (GECloud) integration to better support standalone PV devices and adjusts Fox API caching behavior to handle device-list changes more safely, alongside a version bump and expanded test coverage.

Changes:

  • GECloud: include standalone PV devices in auto-configuration and polling device lists.
  • Fox: invalidate per-device cache ages when the device serial-number set changes, and refine first-run refresh behavior.
  • Tests: add coverage for Fox cache invalidation when device lists change.
File summaries
File Description
apps/predbat/tests/test_fox_api.py Updates/extends tests to cover first-run refresh rules and cache invalidation on device-list changes.
apps/predbat/predbat.py Bumps PredBat version to v8.40.10.
apps/predbat/gecloud.py Adds PV device detection and uses PV devices in entity config and polling; adds request logging.
apps/predbat/fox.py Compares previous vs new device SN sets to drop per-device cache ages when devices change; adjusts device_detail refresh gating.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread apps/predbat/gecloud.py Outdated
Comment thread apps/predbat/gecloud.py Outdated
@springfall2008 springfall2008 merged commit 94028dc into main Jun 16, 2026
1 check passed
@springfall2008 springfall2008 deleted the fix/ge_pv branch June 16, 2026 19:38
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