diff --git a/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java b/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java index b463886b3120f..3023af4c3aa03 100644 --- a/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java +++ b/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java @@ -136,10 +136,7 @@ public boolean isDiscoveryEnabled() { return false; } Object discovery = getConfig().get(BluetoothBindingConstants.CONFIGURATION_DISCOVERY); - if (discovery != null && discovery.toString().equalsIgnoreCase("false")) { - return false; - } - return true; + return !(discovery != null && discovery.toString().equalsIgnoreCase("false")); } @Override