From fd554e3277c1090bec8f2d58c0c80d12a0d4f175 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Wed, 31 May 2023 22:34:11 +0200 Subject: [PATCH] Use getMaxAmpsToDivideAmongSlaves() if getTotalAmpsInUse() lags behind --- lib/TWCManager/TWCMaster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TWCManager/TWCMaster.py b/lib/TWCManager/TWCMaster.py index c3e2942d..310b60a1 100644 --- a/lib/TWCManager/TWCMaster.py +++ b/lib/TWCManager/TWCMaster.py @@ -659,7 +659,7 @@ def getMaxAmpsToDivideGreenEnergy(self): return round(amps, 2) def getMaxAmpsToDivideFromGrid(self): - currentOffer = min( + currentOffer = max( self.getTotalAmpsInUse(), self.getMaxAmpsToDivideAmongSlaves(), )