From 37346920729f00c9fdeed350b4bda0110378219e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 19 Jun 2023 12:10:00 +0200 Subject: [PATCH] Keba: Fix type mismatch warning on setState for phaseCount --- keba/integrationpluginkeba.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keba/integrationpluginkeba.cpp b/keba/integrationpluginkeba.cpp index 52b2922b8..7be9bcc7a 100644 --- a/keba/integrationpluginkeba.cpp +++ b/keba/integrationpluginkeba.cpp @@ -444,12 +444,12 @@ void IntegrationPluginKeba::setupKeba(ThingSetupInfo *info, const QHostAddress & thing->setStateValue("uptime", report.seconds / 60); if (thing->thingClassId() == kebaSimpleThingClassId) { - thing->setStateValue(kebaSimplePhaseCountStateTypeId, thing->setting(kebaSimpleThingClassId)); + thing->setStateValue(kebaSimplePhaseCountStateTypeId, thing->setting(kebaSimpleThingClassId).toUInt()); } connect(thing, &Thing::settingChanged, thing, [thing](const ParamTypeId &settingsTypeId, const QVariant &value){ if (settingsTypeId == kebaSimpleSettingsPhaseCountParamTypeId) { - thing->setStateValue(kebaSimplePhaseCountStateTypeId, value); + thing->setStateValue(kebaSimplePhaseCountStateTypeId, value.toUInt()); } }); });