From 16e731e5e21178a3a7d102bc27c14cb2f589e7a7 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 17 Mar 2020 15:32:44 +0100 Subject: [PATCH] fix a bug in the device handler --- libnymea-core/jsonrpc/devicehandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea-core/jsonrpc/devicehandler.cpp b/libnymea-core/jsonrpc/devicehandler.cpp index 6f2cc5a5..62d4ad04 100644 --- a/libnymea-core/jsonrpc/devicehandler.cpp +++ b/libnymea-core/jsonrpc/devicehandler.cpp @@ -545,7 +545,7 @@ JsonReply *DeviceHandler::PairDevice(const QVariantMap ¶ms, const JsonContex ThingId thingId = ThingId(params.value("deviceId").toString()); info = NymeaCore::instance()->thingManager()->pairThing(thingId, deviceParams, deviceName); } else { - ThingClassId thingClassId(params.value("thingClassId").toString()); + ThingClassId thingClassId(params.value("deviceClassId").toString()); info = NymeaCore::instance()->thingManager()->pairThing(thingClassId, deviceParams, deviceName); }