refactor: Replace pre-connect disconnect with a sleep

This commit is contained in:
2025-12-30 22:38:40 +00:00
committed by Tanner Collin (aider)
parent 99dc67e807
commit aed90db5e8

View File

@@ -94,13 +94,7 @@ async def trust_and_connect_device(device_path):
device_iface = device_obj.get_interface(DEVICE_IFACE) device_iface = device_obj.get_interface(DEVICE_IFACE)
#try: await asyncio.sleep(2)
# logging.info(f"Attempting to disconnect {device_path} before connecting.")
# await device_iface.call_disconnect()
# await asyncio.sleep(1) # Give it a moment to settle
#except DBusError as e:
# # This is expected if the device is not already connected.
# logging.info(f"Disconnect failed (this is likely okay): {e}")
await device_iface.call_connect() await device_iface.call_connect()
logging.info(f'Connected to device {device_path}') logging.info(f'Connected to device {device_path}')