diff --git a/lib/TWCManager/Control/HTTPControl.py b/lib/TWCManager/Control/HTTPControl.py index a5007d12..55858833 100644 --- a/lib/TWCManager/Control/HTTPControl.py +++ b/lib/TWCManager/Control/HTTPControl.py @@ -375,7 +375,7 @@ def do_API_GET(self): } avgCurrent = 0 - for slave in master.getSlaveTWCs(): + for slave in master.getAllEVSEs(): avgCurrent += slave.historyAvgAmps data[endTime.isoformat(timespec="seconds")] = master.convertAmpsToWatts( avgCurrent