refactor(controlcenter): drop dead device-remove fallback
This commit is contained in:
1 file changed
+4
-2
@@ -300,8 +300,10 @@ class BluetoothDeviceSlot(Box):
|
|||||||
parent.client.remove_device(self.device)
|
parent.client.remove_device(self.device)
|
||||||
return
|
return
|
||||||
parent = parent.get_parent()
|
parent = parent.get_parent()
|
||||||
# Fallback: use device.remove() which sets a flag
|
# Fallback: no client parent to issue RemoveDevice from.
|
||||||
self.device.remove()
|
logger.warning(
|
||||||
|
f"[Bluetooth] No client parent found to remove {self.device.address}"
|
||||||
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(f"[Bluetooth] Failed to remove device: {e}")
|
logger.warning(f"[Bluetooth] Failed to remove device: {e}")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user