Skip to content

Verbraucher: remove legacy code, improve error handling - #4070

Merged
LKuemmel merged 4 commits into
openWB:masterfrom
LKuemmel:consumer_dev
Oct 8, 2026
Merged

LKuemmel merged 4 commits into
openWB:masterfrom
LKuemmel:consumer_dev

Conversation

@LKuemmel

@LKuemmel LKuemmel commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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.

🟡 Changes recommended

Removing the exclusion can double-count linked counters and breaks the existing test.

1 open finding
What changed in this PR

Removes legacy extra-meter filtering from consumer counter aggregation.

Changes:

  • Deletes assigned extra-meter detection.
  • Stops skipping linked counters during calculations.
File Description
packages/​modules/​common/​store/​_counter.py Removes legacy extra-meter counter handling.

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread packages/modules/common/store/_counter.py

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.

🟡 Changes recommended

Two moderate error-handling issues remain unresolved.

3 open findings
1 resolved since last review

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment on lines +57 to +60
except ValueError:
raise Exception(
f"Zähler {extra_meter_id} für die separate Lesitungsmessung von Verbraucher "
f"{get_consumer_name_by_id(self.delegate.delegate.num)} ist im Fehlerzustand oder gelöscht worden.")
Comment on lines +42 to +44
for consumer in data.data.consumer_data.values():
if consumer.module.config.id == id:
return consumer.module.config.name
))
except ValueError:
raise Exception(
f"Zähler {extra_meter_id} für die separate Lesitungsmessung von Verbraucher "
@LKuemmel LKuemmel changed the title Verbraucher: remove legac code, improve error handling Verbraucher: remove legacy code, improve error handling Oct 8, 2026
@LKuemmel
LKuemmel merged commit 2f9da08 into openWB:master Oct 8, 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