From: lolodomo Date: Tue, 16 Jul 2024 15:52:17 +0000 (+0200) Subject: [freeboxos] Fix macAddress property when discovering a server (#17082) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=8cf49ebee37ed62fcba6e7b902b19f5c9fe5d039;p=openhab-addons.git [freeboxos] Fix macAddress property when discovering a server (#17082) Fix #17071 Signed-off-by: Laurent Garnier --- diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/discovery/FreeboxOsDiscoveryService.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/discovery/FreeboxOsDiscoveryService.java index 9fc5b15fb6..e2524b6207 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/discovery/FreeboxOsDiscoveryService.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/discovery/FreeboxOsDiscoveryService.java @@ -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());