Reduce SAT warnings (#15090)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2023-06-15 00:02:10 +02:00
committed by GitHub
parent 7ef268f4d2
commit a5c47aebee
23 changed files with 8 additions and 56 deletions

View File

@@ -80,10 +80,7 @@ public class RadoneyeDiscoveryParticipant implements BluetoothDiscoveryParticipa
private boolean isRadoneyeDevice(BluetoothDiscoveryDevice device) {
String manufacturerMacId = device.getAddress().toString().toLowerCase().replace(":", "").substring(0, 6);
if (manufacturerMacId.equals(RADONEYE_BLUETOOTH_COMPANY_ID.toLowerCase())) {
return true;
}
return false;
return manufacturerMacId.equals(RADONEYE_BLUETOOTH_COMPANY_ID.toLowerCase());
}
private String getSerial(BluetoothDiscoveryDevice device) {
@@ -120,7 +117,6 @@ public class RadoneyeDiscoveryParticipant implements BluetoothDiscoveryParticipa
Map<String, Object> properties = new HashMap<>();
properties.put(BluetoothBindingConstants.CONFIGURATION_ADDRESS, device.getAddress().toString());
properties.put(Thing.PROPERTY_VENDOR, "RadonEye");
String name = device.getName();
String serialNumber = device.getSerialNumber();
String firmwareRevision = device.getFirmwareRevision();
String model = device.getModel();