-
Notifications
You must be signed in to change notification settings - Fork 304
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
bluezdbus: Allow hardcoding a UID with BLEAK_DBUS_AUTH_UID #1182
Conversation
Don't forget the bump the minimum |
Also if you want to use it in Home Assistant its dbus-fast is hard pinned so you'll need to do a PR to bump that as well https://github.com/home-assistant/core/blob/dev/homeassistant/components/bluetooth/manifest.json#L14 |
docs/backends/linux.rst
Outdated
@@ -41,6 +41,12 @@ individual Bleak objects should not be shared between event loops. Otherwise, | |||
RuntimeErrors similar to ``[...] got Future <Future pending> attached to a | |||
different loop`` will be thrown. | |||
|
|||
User Namespaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have another similar request for anonymous d-bus authentication at #796 that was never resolved. So perhaps it makes sense to make this section about "D-Bus authentication" in general instead of just user namespaces. Then we can add to it in the other PR.
Also, to start a pattern, perhaps we could make this environment variable BLEAK_DBUS_AUTH_UUID
and use BLEAK_DBUS_AUTH_ANON
in the other PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable, will do!
To clarify, do you mean BLEAK_DBUS_AUTH_UID
(vs UUID
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that we should replace BLEAK_DBUS_UUID
with BLEAK_DBUS_AUTH_UUID
everywhere in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I get that - but do you explicitly want it to be U U I D?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, oops, didn't even notice that. Should be UID, of course!
4c4d290
to
81283ce
Compare
Tested with:
|
My bad - |
Can you run |
Hmm, that appears to generate the same file. Could this be due to an update to the |
OK, I guess there is a new version of Poetry. Let's do a separate commit to update the lock file first. |
Split out |
async-timeout = ">=3.0.0" | ||
|
||
[package.extras] | ||
docs = ["Sphinx (>=5.1.1,<6.0.0)", "myst-parser (>=0.18.0,<0.19.0)", "sphinx-rtd-theme (>=1.0.0,<2.0.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)", "sphinxcontrib-fulltoc (>=1.2.0,<2.0.0)"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this was removed by poetry
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. These were marked as deps of dbus-fast
in 1.22.0
.
Nice work, thanks! |
Closes #1181