Skip to content

feat(whatif): edf tariffs - #4406

Merged
springfall2008 merged 5 commits into
springfall2008:mainfrom
Easen:feat/whatif-edf
Aug 1, 2026
Merged

feat(whatif): edf tariffs#4406
springfall2008 merged 5 commits into
springfall2008:mainfrom
Easen:feat/whatif-edf

Conversation

@Easen

@Easen Easen commented Jul 31, 2026

Copy link
Copy Markdown
Contributor
  • import tariffs
    • EDF Go Electric
    • EDF Empower Fixed
  • Export tariffs
    • EDF Export 15p
    • EDF Export Exclusive 18p

Sources:

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

Adds EDF import/export tariffs to the What-If annual tariff catalogue and ensures the “baseline tariff (no PV/battery)” selection correctly carries dno_region when it depends on a templated {dno_region} URL, preventing config validation failures.

Changes:

  • Added EDF import tariffs (Go Electric; Empower Fixed) and EDF export tariffs (15p; 18p) to the built-in tariff catalogue.
  • Updated the tariff catalogue unit test to include the new EDF tariff IDs.
  • Propagated tariff_dno_region into baseline_tariff when building annual What-If config from the web form.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
apps/predbat/web_annual.py Copies tariff_dno_region into baseline_tariff to support templated baseline URLs.
apps/predbat/tests/test_tariff_catalogue.py Extends expected import/export tariff ID lists to include EDF entries.
apps/predbat/tariff_catalogue.py Adds EDF Kraken API base URL and new EDF import/export catalogue entries.

Comment thread apps/predbat/web_annual.py
springfall2008 and others added 2 commits August 1, 2026 18:32
The unmatched-tariff case renders a flat export rate that matches no
EXPORT_TARIFFS entry, to check it falls back to "flat Np" rather than
blanking. It used 15.0p, which this branch's new EDF Export entry now
claims, so the renderer correctly named it and the fallback assertion
failed. Move the fixture to 21.5p, which no catalogue entry uses, and
say so in a comment.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@springfall2008
springfall2008 merged commit f2d87f5 into springfall2008:main Aug 1, 2026
2 checks passed
@Easen
Easen deleted the feat/whatif-edf branch August 2, 2026 08:06
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.

3 participants