From b67858cabccfa3d1f7854b06d52af3cbcfb4a729 Mon Sep 17 00:00:00 2001 From: Mike Bishop Date: Tue, 8 Nov 2022 18:21:22 +0000 Subject: [PATCH] Dangling getSlaveTWCs() reference --- lib/TWCManager/Control/HTTPControl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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