Merge PR #478: Keba: Filter discovered devices by mac address vendor and not by hostname

This commit is contained in:
Jenkins nymea 2021-09-07 17:36:12 +02:00
commit 143b720d12

View File

@ -55,7 +55,7 @@ void IntegrationPluginKeba::discoverThings(ThingDiscoveryInfo *info)
ThingDescriptors descriptors;
qCDebug(dcKebaKeContact()) << "Discovery finished. Found" << discoveryReply->networkDeviceInfos().count() << "devices";
foreach (const NetworkDeviceInfo &networkDeviceInfo, discoveryReply->networkDeviceInfos()) {
if (!networkDeviceInfo.hostName().contains("keba", Qt::CaseSensitivity::CaseInsensitive))
if (!networkDeviceInfo.macAddressManufacturer().contains("keba", Qt::CaseSensitivity::CaseInsensitive))
continue;
qCDebug(dcKebaKeContact()) << " - Keba Wallbox" << networkDeviceInfo;