mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-10-23 14:43:44 +02:00
Fix error message and simplify filter
This commit is contained in:
parent
e20d8e8e86
commit
92e9817490
@ -66,7 +66,7 @@ void IntegrationPluginFronius::discoverThings(ThingDiscoveryInfo *info)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Hostname or MAC manufacturer must include Fronius
|
// Hostname or MAC manufacturer must include Fronius
|
||||||
if (!(networkDeviceInfo.macAddressManufacturer().toLower().contains("fronius") || networkDeviceInfo.hostName().toLower().contains("fronius")))
|
if (!networkDeviceInfo.macAddressManufacturer().toLower().contains("fronius") && !networkDeviceInfo.hostName().toLower().contains("fronius"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QString title;
|
QString title;
|
||||||
@ -170,7 +170,7 @@ void IntegrationPluginFronius::setupThing(ThingSetupInfo *info)
|
|||||||
Thing *loggerThing = myThings().findById(thing->parentId());
|
Thing *loggerThing = myThings().findById(thing->parentId());
|
||||||
if (!loggerThing) {
|
if (!loggerThing) {
|
||||||
qCWarning(dcFronius()) << "Could not find Logger Thing for thing " << thing->name();
|
qCWarning(dcFronius()) << "Could not find Logger Thing for thing " << thing->name();
|
||||||
return info->finish(Thing::ThingErrorHardwareNotAvailable, "Please try again");
|
return info->finish(Thing::ThingErrorHardwareNotAvailable, QT_TR_NOOP("Please try again"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!loggerThing->setupComplete()) {
|
if (!loggerThing->setupComplete()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user