Skip to content

Consumer: Fix increasing daily yields - #4107

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:consumer_dev
Oct 14, 2026
Merged

LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:consumer_dev

Conversation

@LKuemmel

Copy link
Copy Markdown
Contributor

references #3908 (comment)

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.

🟢 Approval recommended

The focused changes have regression coverage, and no supported blocking issue remains.

0 open findings

What changed in this PR

This PR addresses increasing consumer daily yields in the measurement-logging flow and preserves additional consumer topics during configuration updates.

Changes:

  • Include consumers when correcting logged energy values and initializing source totals.
  • Expand the configuration-update whitelist for consumer topics.
  • Add a regression test for clearing consumer source totals after a calculation error.
File Description
packages/​helpermodules/​update_config.py Preserves additional consumer topics.
packages/​helpermodules/​measurement_logging/​write_log.py Includes consumers in logged-value correction.
packages/​helpermodules/​measurement_logging/​process_log_calculation.py Initializes consumer source totals.
packages/​helpermodules/​measurement_logging/​process_log_calculation_test.py Tests the consumer error fallback.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@LKuemmel
LKuemmel merged commit c9606a1 into openWB:master Oct 14, 2026
1 check passed
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