Skip to content

Commit

Permalink
[bluetooth] Adapt labels of discovery results to standard (openhab#10209
Browse files Browse the repository at this point in the history
)

Signed-off-by: Kai Kreuzer <[email protected]>
  • Loading branch information
kaikreuzer authored Feb 25, 2021
1 parent c544a4b commit 79f498b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ private static ThingUID createThingUIDWithBridge(DiscoveryResult result, Bluetoo

private static DiscoveryResult copyWithNewBridge(DiscoveryResult result, BluetoothAdapter adapter) {
String label = result.getLabel();
String adapterLabel = adapter.getLabel();
if (adapterLabel != null) {
label = adapterLabel + " - " + label;
}

return DiscoveryResultBuilder.create(createThingUIDWithBridge(result, adapter))//
.withBridge(adapter.getUID())//
Expand Down

0 comments on commit 79f498b

Please sign in to comment.