Skip to content

Auswertungen: Namens&Farben-Dict erweitern nicht ersetzen - #4041

Merged
LKuemmel merged 3 commits into
openWB:masterfrom
LKuemmel:fixes
Oct 2, 2026
Merged

LKuemmel merged 3 commits into
openWB:masterfrom
LKuemmel:fixes

Conversation

@LKuemmel

@LKuemmel LKuemmel commented Oct 1, 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.

Copilot review overview

🟡 Changes recommended

Add regression coverage confirming existing names and colors remain after saving new entries.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Extends measurement-log metadata so names and colors accumulate across entries rather than being replaced.

Changes:

  • Preserve existing names and colors.
  • Copy SmartHome names before processing.
File Summary
packages/​helpermodules/​measurement_logging/​write_log.py Accumulates names/colors and avoids mutating input names.

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

Comment on lines +171 to +177
existing_names.update(new_names)
content["names"] = existing_names
existing_colors = content.get("colors")
if not isinstance(existing_colors, dict):
existing_colors = {}
new_colors = get_colors(content["entries"][-1])
existing_colors.update(new_colors)
@LKuemmel
LKuemmel merged commit 372f035 into openWB:master Oct 2, 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