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:
4
main.py
4
main.py
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user