Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ explicitly configured.
## Upgrading

* Update assets client to v0.3.0.
* Default formulas for AC active power and energy are removed.

## New Features

Expand Down
13 changes: 0 additions & 13 deletions src/frequenz/gridpool/_microgrid_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,6 @@ def __post_init__(self) -> None:
"please use 'AC_POWER_ACTIVE' instead."
)

defaults = {
"AC_POWER_ACTIVE",
"AC_ENERGY_ACTIVE",
"AC_ENERGY_ACTIVE_CONSUMED",
"AC_ENERGY_ACTIVE_DELIVERED",
}

for metric in defaults:
if metric not in self.formula:
self.formula[metric] = "+".join(
[f"#{cid}" for cid in self._default_cids()]
)

def cids(self, metric: str = "") -> list[int]:
"""Get component IDs for this component.

Expand Down
Loading