Skip to content
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

Release/v0.22.1 #1568

Merged
merged 8 commits into from
May 7, 2024
Merged

Release/v0.22.1 #1568

merged 8 commits into from
May 7, 2024

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented May 7, 2024

Added

dlech and others added 8 commits April 30, 2024 18:55
It was noted that on Linux, if another app was scanning at the same
time, BlueZ would trigger RSSI changes for all devices, even if they
they didn't match the service_uuids filter.

This change ensures that we always filter by service_uuids, even if
the OS isn't doing it for us.

On Windows, the OS wasn't filtering for us anyway, so we can just move
that code to the shared call_detection_callbacks() so that all backends
will make use of it.

Fixes: #1534
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
We had lots of users reporting issues with the WinRT backend hanging
forever when trying to connect to a device. This was happening because
some other imported library was initializing the the main thread to STA
which caused some async callback to never be called.

To work around this, we added a check to make sure the main thread is
set to MTA rather than STA. Unfortunately, in cases where there is a
graphical user interface library being used AND that library is properly
interated with asynco so that Bleak runs in the main thread rather than
in a background thread, the thread type does need to be STA for the GUI
to work. So in those very specific conditions, we need to not raise an
exception.

We don't know of a way to detect this automatically, so we added a new
utility function `allow_sta()` that the user can call to allow Bleak to
run in an STA thread.
@dlech dlech merged commit 181467f into master May 7, 2024
15 checks passed
@dlech dlech deleted the release/v0.22.1 branch May 7, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant