don't find ShellyPlug[-S] devices, we don't support that yet
parent
720394ebe1
commit
7fb2430017
|
|
@ -67,7 +67,7 @@ void DevicePluginShelly::discoverDevices(DeviceDiscoveryInfo *info)
|
||||||
// qCDebug(dcShelly()) << "Have entry" << entry;
|
// qCDebug(dcShelly()) << "Have entry" << entry;
|
||||||
QRegExp namePattern;
|
QRegExp namePattern;
|
||||||
if (info->deviceClassId() == shelly1DeviceClassId) {
|
if (info->deviceClassId() == shelly1DeviceClassId) {
|
||||||
namePattern = QRegExp("^shelly(1|1pm|plug|plug-s)-[0-9A-Z]+$");
|
namePattern = QRegExp("^shelly(1|1pm)-[0-9A-Z]+$");
|
||||||
}
|
}
|
||||||
if (!entry.name().contains(namePattern)) {
|
if (!entry.name().contains(namePattern)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue