Skip to content

Commit

Permalink
Merge PR #478: Keba: Filter discovered devices by mac address vendor …
Browse files Browse the repository at this point in the history
…and not by hostname
  • Loading branch information
nymea-jenkins committed Sep 7, 2021
2 parents c9cdaee + 8a73a5c commit 143b720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keba/integrationpluginkeba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 143b720

Please sign in to comment.