Skip to content

Commit e129019

Browse files
authored
Merge branch 'main' into metric_class
2 parents dae06db + 4a807e2 commit e129019

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

custom_components/ocpp/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from collections import defaultdict
44
from datetime import datetime, timedelta, timezone
55
import logging
6-
from math import sqrt
76
import time
87
from typing import Dict
98

@@ -738,7 +737,7 @@ async def async_update_device_info(self, boot_info: dict):
738737

739738
def process_phases(self, data):
740739
"""Process phase data from meter values payload."""
741-
measurand_data = {}
740+
extra_attr = {}
742741
for sv in data:
743742
# create ordered Dict for each measurand, eg {"voltage":{"unit":"V","L1":"230"...}}
744743
measurand = sv.get(om.measurand.value, None)
@@ -774,8 +773,6 @@ def process_phases(self, data):
774773
elif metric in [
775774
Measurand.current_import.value,
776775
Measurand.current_export.value,
777-
Measurand.power_active_import.value,
778-
Measurand.power_active_export.value,
779776
]:
780777
"""Line currents and powers are summed."""
781778
if Phase.l1.value in phase_info:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ branch = False
4141

4242
[coverage:report]
4343
show_missing = true
44-
fail_under = 90
44+
fail_under = 90

0 commit comments

Comments
 (0)