mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-08-04 03:23:36 +02:00
Keba: Fix type mismatch warning on setState for phaseCount
This commit is contained in:
parent
4acddd2219
commit
3734692072
@ -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());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user