Merge PR #246: Shelly: Fix channel parameter for generated switch on Shelly1

This commit is contained in:
Jenkins nymea 2020-04-14 17:29:26 +02:00
commit 5204de99b4

View File

@ -715,6 +715,7 @@ void IntegrationPluginShelly::setupShellyGateway(ThingSetupInfo *info)
if (info->thing()->thingClassId() == shelly1ThingClassId
|| info->thing()->thingClassId() == shelly1pmThingClassId) {
ThingDescriptor switchChild(shellySwitchThingClassId, info->thing()->name() + " switch", QString(), info->thing()->id());
switchChild.setParams(ParamList() << Param(shellySwitchThingChannelParamTypeId, 1));
autoChilds.append(switchChild);
}