-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(client): Ensure that the bus is connected before pairing #1713
base: develop
Are you sure you want to change the base?
Conversation
88d321b
to
044b022
Compare
044b022
to
8aea8fb
Compare
Can you please describe how to reproduce the problem that this is fixing? |
On a Linux system:
|
OK, so I think what we really want here is to solve #309 where we can just call Or perhaps even better, add a |
Has anyone attempted to solve this already? |
I don't think it is broken. Everyone so far connects first, then pairs. |
But that's in direct contrast to the documentation of that method 😄 |
Can you share a link? I'm not finding that. |
Additionally, per my testing, calling pair() which calls the Pair method on the BlueZ device, triggers a connection attempt from the Linux host to the remote host by itself anyways. |
bleak/bleak/backends/bluezdbus/client.py Line 433 in e01e264
|
8aea8fb
to
42a6a3c
Compare
If pairing is attempted before the bus is connected, the pairing process fails due to an exception being raised.
aed853b
to
0f38bfb
Compare
If pairing is attempted before the bus is connected, the pairing process fails due to an exception being raised.