]> git.basschouten.com Git - openhab-addons.git/commitdiff
[freeboxos] Fix macAddress property when discovering a server (#17082)
authorlolodomo <lg.hc@free.fr>
Tue, 16 Jul 2024 15:52:17 +0000 (17:52 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2024 15:52:17 +0000 (17:52 +0200)
Fix #17071

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/discovery/FreeboxOsDiscoveryService.java

index 9fc5b15fb64011fac492ce2afe38da530ec32806..e2524b6207015fe8f416ee052de0d516a46304a9 100644 (file)
@@ -236,7 +236,7 @@ public class FreeboxOsDiscoveryService extends AbstractThingHandlerDiscoveryServ
 
             DiscoveryResult discoveryResult = DiscoveryResultBuilder.create(thingUID).withBridge(bridgeUID)
                     .withRepresentationProperty(Thing.PROPERTY_MAC_ADDRESS).withLabel(config.modelInfo().prettyName())
-                    .withProperty(Thing.PROPERTY_MAC_ADDRESS, config.mac()).build();
+                    .withProperty(Thing.PROPERTY_MAC_ADDRESS, config.mac().toColonDelimitedString()).build();
             thingDiscovered(discoveryResult);
         } catch (PermissionException e) {
             logger.warn("Missing permission to discover Server {}", e.getPermission());