Skip to content

Commit

Permalink
Filter keba devices by mac address vendor and not by hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
t-mon committed Sep 7, 2021
1 parent f966532 commit 8a73a5c
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 8a73a5c

Please sign in to comment.