Skip to content

Proposal: addToSum for ElectricityMeter#3238

Closed
sthhs wants to merge 2 commits intoOpenEMS:developfrom
sthhs:AddToSum
Closed

Proposal: addToSum for ElectricityMeter#3238
sthhs wants to merge 2 commits intoOpenEMS:developfrom
sthhs:AddToSum

Conversation

@sthhs
Copy link
Copy Markdown
Contributor

@sthhs sthhs commented Jul 14, 2025

Sometimes a meter that is located behind another meter should not be considered in the calculation of the production or consumption sum.
With the changes in this PR it is possible to configure a meter to be excluded from the sum calculation by implementing the function addToSum().
Default value is true, so there is no need to change the code for every already existing meter.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

❗ There is a different number of reports uploaded between BASE (64545b1) and HEAD (0e3db5e). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (64545b1) HEAD (0e3db5e)
java 1 0
Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #3238       +/-   ##
==============================================
- Coverage      59.40%   26.87%   -32.52%     
==============================================
  Files           2683      304     -2379     
  Lines         116693     8204   -108489     
  Branches        8643     1265     -7378     
==============================================
- Hits           69304     2204    -67100     
+ Misses         44764     5899    -38865     
+ Partials        2625      101     -2524     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown

This PR has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Sep 16, 2025
@github-actions
Copy link
Copy Markdown

Closing this PR due to inactivity.

@github-actions github-actions bot closed this Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant