refactor(controlcenter): drop dead device-remove fallback

This commit is contained in:
sankalp committed 2026-08-02 13:37:10 +05:45
1 parent 715f1c8415
commit 972eb18088
1 file changed
+4 -2
+4 -2
View File
@@ -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}")