Skip to content

Fix kraken issue with missing tariff data - #3776

Merged
springfall2008 merged 2 commits into
mainfrom
fix/kraken
Apr 11, 2026
Merged

springfall2008 merged 2 commits into
mainfrom
fix/kraken

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 11, 2026 09:17

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 addresses Kraken (EDF/E.ON) rate-fetch failures when the public REST product endpoint no longer serves a product code (e.g., tariff product replaced mid-agreement) by introducing a GraphQL applicableRates fallback.

Changes:

  • Added a new GraphQL applicableRates query template and an async_fetch_rates_graphql() fallback fetcher.
  • Stored the discovered import MPAN during tariff discovery to enable GraphQL fallback.
  • Updated async_fetch_rates() to fall back to GraphQL when the REST endpoint returns a non-200 status (import only).

Comment thread apps/predbat/kraken.py
Comment thread apps/predbat/kraken.py
Comment thread apps/predbat/kraken.py
@springfall2008
springfall2008 merged commit 2329f54 into main Apr 11, 2026
1 check passed
@springfall2008
springfall2008 deleted the fix/kraken branch April 11, 2026 10:35
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