From 8a73a5cc08474282fed887e72e5a1141056a40d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 7 Sep 2021 15:32:02 +0200 Subject: [PATCH] Filter keba devices by mac address vendor and not by hostname --- keba/integrationpluginkeba.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keba/integrationpluginkeba.cpp b/keba/integrationpluginkeba.cpp index 90fa8d8f9..97cfe95f9 100644 --- a/keba/integrationpluginkeba.cpp +++ b/keba/integrationpluginkeba.cpp @@ -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;