Skip to content

Commit 28ce3c2

Browse files
authored
[hdpowerview] Fix bug in discovered Bridge label (openhab#18236)
Signed-off-by: Andrew Fiddian-Green <[email protected]>
1 parent a4ac021 commit 28ce3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.openhab.binding.hdpowerview/src/main/java/org/openhab/binding/hdpowerview/internal/discovery/HDPowerViewSddpDiscoveryParticipant.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public Set<ThingTypeUID> getSupportedThingTypeUIDs() {
6060
String label = generation == 3 //
6161
? String.format("@text/%s [\"%s\"]", LABEL_KEY_GATEWAY, device.ipAddress)
6262
: String.format("@text/%s [\"%s\", \"%s\"]",
63-
HDPowerViewHubMDNSDiscoveryParticipant.LABEL_KEY_HUB, device.ipAddress, generation);
63+
HDPowerViewHubMDNSDiscoveryParticipant.LABEL_KEY_HUB, generation, device.ipAddress);
6464

6565
DiscoveryResult hub = DiscoveryResultBuilder.create(thingUID)
6666
.withProperty(HDPowerViewHubConfiguration.HOST, device.ipAddress)

0 commit comments

Comments
 (0)