diff --git a/e3dc/_e3dc.py b/e3dc/_e3dc.py index 8634239..54eb56c 100644 --- a/e3dc/_e3dc.py +++ b/e3dc/_e3dc.py @@ -1769,7 +1769,7 @@ def get_powermeters(self, keepAlive=False): 5: "PM_TYPE_FARM", 6: "PM_TYPE_UNUSED", 7: "PM_TYPE_WALLBOX", - 8: "PM_TYPE_FARM_ADDITIONAL" + 8: "PM_TYPE_FARM_ADDITIONAL", } outObj = [] @@ -1790,13 +1790,9 @@ def get_powermeters(self, keepAlive=False): if pmType is not None: outObj.append( - { - "index": pmIndex, - "type": pmType, - "typeName": pmTypeNames[pmType] - } + {"index": pmIndex, "type": pmType, "typeName": pmTypeNames[pmType]} ) - + return outObj def get_powermeter_data(self, pmIndex=None, keepAlive=False):