Skip to content

Commit d00ad5d

Browse files
authored
Update api.py (#93)
1 parent 9b0f4e0 commit d00ad5d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

custom_components/ocpp/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,7 @@ def process_phases(self, data):
716716
+ value[Phase.l2.value]
717717
+ value[Phase.l3.value]
718718
)
719-
if sum > 0:
720-
self._metrics[metric] = round(sum / 3, 1)
721-
else:
722-
self._metrics[metric] = round(sum, 1)
719+
self._metrics[metric] = round(sum, 1)
723720
self._extra_attr[metric] = value
724721

725722
@on(Action.MeterValues)

0 commit comments

Comments
 (0)