Skip to content

Commit 7f3878a

Browse files
committed
Remove default formula for active power and energy
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 <126617870+cwasicki@users.noreply.github.com>
1 parent 4681c2b commit 7f3878a

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/frequenz/gridpool/_microgrid_config.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,6 @@ def __post_init__(self) -> None:
5151
"please use 'AC_POWER_ACTIVE' instead."
5252
)
5353

54-
defaults = {
55-
"AC_POWER_ACTIVE",
56-
"AC_ENERGY_ACTIVE",
57-
"AC_ENERGY_ACTIVE_CONSUMED",
58-
"AC_ENERGY_ACTIVE_DELIVERED",
59-
}
60-
61-
for metric in defaults:
62-
if metric not in self.formula:
63-
self.formula[metric] = "+".join(
64-
[f"#{cid}" for cid in self._default_cids()]
65-
)
66-
6754
def cids(self, metric: str = "") -> list[int]:
6855
"""Get component IDs for this component.
6956

0 commit comments

Comments
 (0)