From 7bc1d802d4a2cc5b3a71e48af8228069450439da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 4 Oct 2021 14:36:25 +0200 Subject: [PATCH] Disable unlanded min max state value setting --- goecharger/integrationplugingoecharger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goecharger/integrationplugingoecharger.cpp b/goecharger/integrationplugingoecharger.cpp index c355db9c..2d9c2cc4 100644 --- a/goecharger/integrationplugingoecharger.cpp +++ b/goecharger/integrationplugingoecharger.cpp @@ -360,7 +360,8 @@ void IntegrationPluginGoECharger::update(Thing *thing, const QVariantMap &status uint cableLimit = statusMap.value("cbl").toUInt(); // Set the limit for the max charging amps - thing->setStateMaxValue(goeHomeMaxChargingCurrentStateTypeId, qMin(amaLimit, cableLimit)); + // FIXME: set the max value for the state to limit + //thing->setStateMaxValue(goeHomeMaxChargingCurrentStateTypeId, qMin(amaLimit, cableLimit)); thing->setStateValue(goeHomeAbsoluteMaxAmpereStateTypeId, amaLimit); thing->setStateValue(goeHomeCableType2AmpereStateTypeId, cableLimit);