Skip to content

Commit b319e92

Browse files
committed
Fix bug in inverter current data extractor
It was supposed to extract data for the inverter, but was doing so for the meter. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent b7a46d6 commit b319e92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frequenz/sdk/microgrid/component/_component_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ def from_proto(cls, raw: microgrid_pb.ComponentData) -> InverterData:
308308
timestamp=raw.ts.ToDatetime(tzinfo=timezone.utc),
309309
active_power=raw.inverter.data.ac.power_active.value,
310310
current_per_phase=(
311-
raw.meter.data.ac.phase_1.current.value,
312-
raw.meter.data.ac.phase_2.current.value,
313-
raw.meter.data.ac.phase_3.current.value,
311+
raw.inverter.data.ac.phase_1.current.value,
312+
raw.inverter.data.ac.phase_2.current.value,
313+
raw.inverter.data.ac.phase_3.current.value,
314314
),
315315
active_power_inclusion_lower_bound=raw_power.system_inclusion_bounds.lower,
316316
active_power_exclusion_lower_bound=raw_power.system_exclusion_bounds.lower,

0 commit comments

Comments
 (0)