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

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

View File

@@ -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())//