Skip to content

Add Naturstrom - #3695

Merged
benderl merged 5 commits into
openWB:masterfrom
AlexanderHa98:feature_Naturstrom-tariffs
Aug 6, 2026
Merged

Add Naturstrom#3695
benderl merged 5 commits into
openWB:masterfrom
AlexanderHa98:feature_Naturstrom-tariffs

Conversation

@AlexanderHa98

@AlexanderHa98 AlexanderHa98 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

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 a new “Naturstrom” flexible electricity tariff provider module to the electricity pricing subsystem, including configuration models and runtime fetching/refresh logic.

Changes:

  • Introduces Naturstrom tariff fetching, including OAuth refresh-token handling and publishing refreshed tokens back into config.
  • Adds Naturstrom provider configuration dataclasses (token + account identification + update schedule).
  • Registers the provider package via an (empty) module initializer.

Reviewed changes

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

File Description
packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Implements token validation/refresh and price retrieval/parsing for Naturstrom.
packages/modules/electricity_pricing/flexible_tariffs/naturstrom/config.py Adds dataclass-based configuration for Naturstrom (token, account, update_hours).
packages/modules/electricity_pricing/flexible_tariffs/naturstrom/init.py Initializes the Naturstrom provider package.

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

Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/config.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/config.py Outdated
Comment thread packages/modules/electricity_pricing/flexible_tariffs/naturstrom/tariff.py Outdated
@benderl
benderl marked this pull request as ready for review August 6, 2026 10:11
@benderl
benderl merged commit 4fa9d07 into openWB:master Aug 6, 2026
1 check passed
benderl pushed a commit that referenced this pull request Aug 6, 2026
* Add Naturstrom
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.

4 participants