From 8d39e5b2eea0a8d725c5549464171ca394f998bc Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 20 Jun 2021 14:10:48 +0200 Subject: [PATCH] [miio] fix discovery issue when for devices with dot (#10880) Signed-off-by: Marcel Verpaalen --- .../openhab/binding/miio/internal/discovery/MiIoDiscovery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java index a9f1b933a2f..491766eec32 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java @@ -233,7 +233,7 @@ public class MiIoDiscovery extends AbstractDiscoveryService { } private void submitDiscovery(String ip, String token, String id, String label, String country, boolean isOnline) { - ThingUID uid = new ThingUID(THING_TYPE_MIIO, id); + ThingUID uid = new ThingUID(THING_TYPE_MIIO, id.replace(".", "_")); DiscoveryResultBuilder dr = DiscoveryResultBuilder.create(uid).withProperty(PROPERTY_HOST_IP, ip) .withProperty(PROPERTY_DID, id); if (IGNORED_TOKENS.contains(token)) {