fix: Correct D-Bus ObjectManager path for BlueZ

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2025-12-30 19:50:29 +00:00
parent ef658a76a1
commit 1d7a084a3a

View File

@@ -91,8 +91,8 @@ async def trust_and_connect_device(device_path):
logging.error(f'Failed to trust/connect to {device_path}: {e}') logging.error(f'Failed to trust/connect to {device_path}: {e}')
async def get_adapter(): async def get_adapter():
introspection = await bus.introspect(BLUEZ_SERVICE, '/org/bluez') introspection = await bus.introspect(BLUEZ_SERVICE, '/')
manager_obj = bus.get_proxy_object(BLUEZ_SERVICE, '/org/bluez', introspection) manager_obj = bus.get_proxy_object(BLUEZ_SERVICE, '/', introspection)
manager_iface = manager_obj.get_interface('org.freedesktop.DBus.ObjectManager') manager_iface = manager_obj.get_interface('org.freedesktop.DBus.ObjectManager')
managed_objects = await manager_iface.call_get_managed_objects() managed_objects = await manager_iface.call_get_managed_objects()