Fix keba network monitor handling on reconfigure

master
Simon Stürz 2022-06-01 11:48:58 +02:00
parent 2a508e76b2
commit 788a617135
1 changed files with 6 additions and 1 deletions

View File

@ -131,8 +131,13 @@ void IntegrationPluginKeba::setupThing(ThingSetupInfo *info)
if (keba) {
qCDebug(dcKeba()) << "Reconfigure" << thing->name() << thing->params();
delete keba;
// Now continue with the normal setup
}
if (m_monitors.contains(thing)) {
hardwareManager()->networkDeviceDiscovery()->unregisterMonitor(m_monitors.take(thing));
}
// Now continue with the normal setup..
}
qCDebug(dcKeba()) << "Setting up" << thing->name() << thing->params();