From 90ff332a6f30fe5ecd57c63c93fee4da2e4fd02e Mon Sep 17 00:00:00 2001 From: drc38 <20024196+drc38@users.noreply.github.com> Date: Sun, 8 Sep 2024 20:38:42 +1200 Subject: [PATCH] fix missing n phase (#1312) --- custom_components/ocpp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ocpp/api.py b/custom_components/ocpp/api.py index 52629889..13334069 100644 --- a/custom_components/ocpp/api.py +++ b/custom_components/ocpp/api.py @@ -1117,7 +1117,7 @@ def average_of_nonzero(values): self._metrics[measurand].extra_attr[phase] = float(value) self._metrics[measurand].extra_attr[om.context.value] = context - line_phases = [Phase.l1.value, Phase.l2.value, Phase.l3.value] + line_phases = [Phase.l1.value, Phase.l2.value, Phase.l3.value, Phase.n.value] line_to_neutral_phases = [Phase.l1_n.value, Phase.l2_n.value, Phase.l3_n.value] line_to_line_phases = [Phase.l1_l2.value, Phase.l2_l3.value, Phase.l3_l1.value]