Skip to content

Commit fd37b57

Browse files
committed
Remove battery_power() method from logical meter
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent aa5bd35 commit fd37b57

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/frequenz/sdk/timeseries/logical_meter/_logical_meter.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from ...microgrid.component import ComponentMetricId
1616
from .._formula_engine import FormulaEngine, FormulaEngine3Phase, FormulaEnginePool
1717
from .._formula_engine._formula_generators import (
18-
BatteryPowerFormula,
1918
GridCurrentFormula,
2019
GridPowerFormula,
2120
PVPowerFormula,
@@ -176,24 +175,6 @@ def grid_current(self) -> FormulaEngine3Phase:
176175
GridCurrentFormula,
177176
) # type: ignore[return-value]
178177

179-
@property
180-
def battery_power(self) -> FormulaEngine:
181-
"""Fetch the cumulative battery power in the microgrid.
182-
183-
If a formula engine to calculate cumulative battery power is not already
184-
running, it will be started.
185-
186-
A receiver from the formula engine can be created using the `new_receiver`
187-
method.
188-
189-
Returns:
190-
A FormulaEngine that will calculate and stream battery power.
191-
"""
192-
return self._formula_pool.from_generator(
193-
"battery_power",
194-
BatteryPowerFormula,
195-
) # type: ignore[return-value]
196-
197178
@property
198179
def pv_power(self) -> FormulaEngine:
199180
"""Fetch the PV power production in the microgrid.

0 commit comments

Comments
 (0)