From aa3b249724ab8cbc6672cc514d0057da05fbe205 Mon Sep 17 00:00:00 2001 From: ebw44 Date: Tue, 17 Oct 2023 22:13:19 +1300 Subject: [PATCH] Shelly: Fix discovery for 1 Plus PM --- shelly/integrationpluginshelly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shelly/integrationpluginshelly.cpp b/shelly/integrationpluginshelly.cpp index 00cce8a6..a3b7e092 100644 --- a/shelly/integrationpluginshelly.cpp +++ b/shelly/integrationpluginshelly.cpp @@ -90,7 +90,7 @@ void IntegrationPluginShelly::discoverThings(ThingDiscoveryInfo *info) } else if (info->thingClassId() == shelly1pmThingClassId) { namePattern = QRegExp("^shelly1pm-[0-9A-Z]+$"); } else if (info->thingClassId() == shellyPlus1pmThingClassId) { - namePattern = QRegExp("^ShellyPlus1PM-[0-9A-Z]+$"); + namePattern = QRegExp("^ShellyPlus1PM-[0-9A-Z]+$", Qt::CaseInsensitive); } else if (info->thingClassId() == shelly1lThingClassId) { namePattern = QRegExp("^shelly1l-[0-9A-Z]+$"); } else if (info->thingClassId() == shellyPlugThingClassId) {