diff -r 699b5ceb39aa -r f5631f40c4d9 src/eric7/MicroPython/BluetoothDialogs/BluetoothScanWindow.py --- a/src/eric7/MicroPython/BluetoothDialogs/BluetoothScanWindow.py Mon Mar 04 11:26:52 2024 +0100 +++ b/src/eric7/MicroPython/BluetoothDialogs/BluetoothScanWindow.py Mon Mar 04 11:42:39 2024 +0100 @@ -104,9 +104,11 @@ template.format( bits, serviceID, - self.tr(" - {0}").format(serviceName) - if serviceName - else "", + ( + self.tr(" - {0}").format(serviceName) + if serviceName + else "" + ), ) ], ) @@ -118,11 +120,13 @@ citm = QTreeWidgetItem( itm, [ - self.tr("Manufacturer ID: 0x{0:x} - {1}").format( - mid, mname + ( + self.tr("Manufacturer ID: 0x{0:x} - {1}").format( + mid, mname + ) + if bool(mname) + else self.tr("Manufacturer ID: 0x{0:x}").format(mid) ) - if bool(mname) - else self.tr("Manufacturer ID: 0x{0:x}").format(mid) ], ) citm.setFirstColumnSpanned(True)