Skip to content

Remove default formula for active power and energy#55

Merged
cwasicki merged 1 commit intofrequenz-floss:v0.x.xfrom
cwasicki:def
Mar 23, 2026
Merged

Remove default formula for active power and energy#55
cwasicki merged 1 commit intofrequenz-floss:v0.x.xfrom
cwasicki:def

Conversation

@cwasicki
Copy link
Copy Markdown
Collaborator

With support for formulas derived from the component graph via assets API, this should not be used anymore to not silently default to a wrong formula.

Copilot AI review requested due to automatic review settings March 20, 2026 19:52
@cwasicki cwasicki requested review from a team as code owners March 20, 2026 19:52
With support for formulas derived from the component graph via assets
API, this should not be used anymore to not silently default to a
wrong formula.

Signed-off-by: cwasicki <[email protected]>
@github-actions github-actions bot added the part:docs Affects the documentation label Mar 20, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the implicit fallback formulas for active power/energy metrics so that formulas are no longer silently defaulted (and potentially incorrect), aligning configuration behavior with formulas derived from the Assets API component graph.

Changes:

  • Removed auto-generated default formulas for AC_POWER_ACTIVE and active energy metrics from ComponentTypeConfig.__post_init__.

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

@cwasicki cwasicki added this pull request to the merge queue Mar 23, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit f87d5b6 Mar 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants