Skip to content

Commit 47bc211

Browse files
committed
Use measurements from EV chargers when calculating grid power
... if the ev chargers are directly connected to the grid. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 5481cdd commit 47bc211

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/frequenz/sdk/timeseries/logical_meter/_formula_generators/_grid_power_formula.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ async def generate(
5353
#
5454
# This is not possible for Meters, so when they produce `None`
5555
# values, those values get propagated as the output.
56-
if comp.category == ComponentCategory.INVERTER:
56+
if comp.category in (
57+
ComponentCategory.INVERTER,
58+
ComponentCategory.EV_CHARGER,
59+
):
5760
nones_are_zeros = True
5861
elif comp.category == ComponentCategory.METER:
5962
nones_are_zeros = False

0 commit comments

Comments
 (0)