@@ -75,6 +75,7 @@ def get_channel_name(self) -> str:
7575 ComponentMetricId .VOLTAGE_PHASE_1 : lambda msg : msg .voltage_per_phase [0 ],
7676 ComponentMetricId .VOLTAGE_PHASE_2 : lambda msg : msg .voltage_per_phase [1 ],
7777 ComponentMetricId .VOLTAGE_PHASE_3 : lambda msg : msg .voltage_per_phase [2 ],
78+ ComponentMetricId .FREQUENCY : lambda msg : msg .frequency ,
7879}
7980
8081_BatteryDataMethods : Dict [ComponentMetricId , Callable [[BatteryData ], float ]] = {
@@ -111,6 +112,7 @@ def get_channel_name(self) -> str:
111112 ComponentMetricId .ACTIVE_POWER_INCLUSION_UPPER_BOUND : lambda msg : (
112113 msg .active_power_inclusion_upper_bound
113114 ),
115+ ComponentMetricId .FREQUENCY : lambda msg : msg .frequency ,
114116}
115117
116118_EVChargerDataMethods : Dict [ComponentMetricId , Callable [[EVChargerData ], float ]] = {
@@ -121,6 +123,7 @@ def get_channel_name(self) -> str:
121123 ComponentMetricId .VOLTAGE_PHASE_1 : lambda msg : msg .voltage_per_phase [0 ],
122124 ComponentMetricId .VOLTAGE_PHASE_2 : lambda msg : msg .voltage_per_phase [1 ],
123125 ComponentMetricId .VOLTAGE_PHASE_3 : lambda msg : msg .voltage_per_phase [2 ],
126+ ComponentMetricId .FREQUENCY : lambda msg : msg .frequency ,
124127}
125128
126129
0 commit comments