Skip to content

Fox - fix issue with export limit and v2 scheduler#4193

Merged
springfall2008 merged 1 commit into
mainfrom
fix/fox_v2.1
Jul 6, 2026
Merged

Fox - fix issue with export limit and v2 scheduler#4193
springfall2008 merged 1 commit into
mainfrom
fix/fox_v2.1

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 6, 2026 07:16

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 fixes Fox EVO (v2 scheduler) handling so that scheduler responses’ properties metadata (range/unit/precision) is preserved and used when deriving device settings (notably ExportLimit). This ensures derived settings publish as editable HA number.* entities (with min/max/step) rather than falling back to plain sensors that leave automatic_config-wired entity IDs unresolvable.

Changes:

  • Preserve and forward the v2 scheduler properties block through get_scheduler_v2() into get_scheduler().
  • Enhance update_settings_from_schedule() to attach range/unit/precision from properties when synthesizing settings like ExportLimit/ImportLimit/PvLimit.
  • Add regression tests ensuring v2 properties are honored and derived ExportLimit publishes as a number entity; bump version to v8.44.3.

Reviewed changes

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

File Description
apps/predbat/fox.py Pass through v2 scheduler properties and use them to derive editable number settings (ExportLimit, etc.).
apps/predbat/tests/test_fox_api.py Add regression tests for v2 properties handling and ExportLimit publishing as a number entity.
apps/predbat/predbat.py Bump THIS_VERSION to v8.44.3.

@springfall2008 springfall2008 merged commit 54761f4 into main Jul 6, 2026
3 checks passed
@springfall2008 springfall2008 deleted the fix/fox_v2.1 branch July 6, 2026 07:25
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