[bluetooth] Adapt labels of discovery results to standard (#10209)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
a9bddff5ad
commit
8928e8520c
@ -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())//
|
||||
|
Loading…
x
Reference in New Issue
Block a user