[bluetooth] Adapt labels of discovery results to standard ()

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2021-02-25 19:17:39 +01:00 committed by GitHub
parent a9bddff5ad
commit 8928e8520c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -155,10 +155,6 @@ public class BluetoothDiscoveryService extends AbstractDiscoveryService implemen
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())//