Skip to content

build(deps): update bleak requirement from <2.2.0,>=1.0.1 to >=1.0.1,<3.1.0#82

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/bleak-gte-1.0.1-and-lt-3.1.0
Open

build(deps): update bleak requirement from <2.2.0,>=1.0.1 to >=1.0.1,<3.1.0#82
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/bleak-gte-1.0.1-and-lt-3.1.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 23, 2026

Updates the requirements on bleak to permit the latest version.

Release notes

Sourced from bleak's releases.

v3.0.0

Migration guide

There are only some small breaking changes, so hopefully most users can upgrade without any changes.

The exception is if your project is handling OS-specific exceptions on the GATT read and write methods. These exceptions are now wrapped in BleakGATTProtocolError to have a consistent cross-platform exception. If you need to support multiple versions of Bleak, you can catch both exceptions.

For example, if you caught BleakDBusError and parsed the string to get the GATT error, you can now catch BleakGATTProtocolError instead and it has a code property to get the actual error code.

Another change of note is the deprecation of the adapter keyword argument. We know there are lots of users of this, so we intend to have a long deprecation cycle for this (several years). If you need to support multiple versions of Bleak, you can pass both the old kwarg adapter="hci0" and the new bluez={"adapter": "hci0"} and optionally suppress the deprecation warning. Otherwise, you can just replace the old arg with the new arg as seen in the previous example.

Changelog

Added

  • Added adapter attribute to bleak.args.bluez.BlueZClientArgs and bleak.args.bluez.BlueZScannerArgs.
  • Added bluez keyword argument to BleakClient.
  • Added new bleak.args.bluez.BlueZClientArgs class.
  • Added bleak.exc.BleakGATTProtocolError and bleak.exc.BleakGATTProtocolErrorCode classes.
  • Added type hints and documentation for use_cached kwarg for read_gatt_char() and read_gatt_descriptor() methods in BleakClient.
  • Added support for "use_cached" kwarg to read_gatt_char() and read_gatt_descriptor() methods in BlueZ backend.

Changed

  • Deprecated adapter keyword argument in BleakScanner and BleakClient.
  • Changed GATT read and write methods to raise BleakGATTProtocolError when a GATT protocol error occurs.
  • Changed start/stop scanning on CoreBluetooth so that the isScanning property is not checked anymore.
  • Changed BleakClient.write_gatt_descriptor() to raise ValueError when attempting to write to the descriptor 0x2902 (Client Characteristic Configuration Descriptor, CCCD). Use start_notify() and stop_notify() instead.

Fixed

  • Fixed occasional EOFError when disconnecting in BlueZ backend. Fixes #1921.
  • Fixed a potential deadlock when turning off Bluetooth manually while starting scanning on CoreBluetooth.
  • Fixed reading descriptors 0x2900, 0x2902 and 0x2903 on CoreBluetooth backend.
  • Fixed cyclic references problem in CoreBluetooth backend causing memory leaks.
  • Fixed typehint for BleakScanner.__aexit__().

Removed

  • Removed undocumented/deprecated device keyword argument from BleakScannerBlueZDBus and BleakClientBlueZDBus.
Changelog

Sourced from bleak's changelog.

3.0.0_ (2026-03-22)

Added

  • Added adapter attribute to bleak.args.bluez.BlueZClientArgs and bleak.args.bluez.BlueZScannerArgs.
  • Added bluez keyword argument to BleakClient.
  • Added new bleak.args.bluez.BlueZClientArgs class.
  • Added bleak.exc.BleakGATTProtocolError and bleak.exc.BleakGATTProtocolErrorCode classes.
  • Added type hints and documentation for use_cached kwarg for read_gatt_char() and read_gatt_descriptor() methods in BleakClient.
  • Added support for "use_cached" kwarg to read_gatt_char() and read_gatt_descriptor() methods in BlueZ backend.

Changed

  • Deprecated adapter keyword argument in BleakScanner and BleakClient.
  • Changed GATT read and write methods to raise BleakGATTProtocolError when a GATT protocol error occurs.
  • Changed start/stop scanning on CoreBluetooth so that the isScanning property is not checked anymore.
  • Changed BleakClient.write_gatt_descriptor() to raise ValueError when attempting to write to the descriptor 0x2902 (Client Characteristic Configuration Descriptor, CCCD). Use start_notify() and stop_notify() instead.

Fixed

  • Fixed occasional EOFError when disconnecting in BlueZ backend. Fixes #1921.
  • Fixed a potential deadlock when turning off Bluetooth manually while starting scanning on CoreBluetooth.
  • Fixed reading descriptors 0x2900, 0x2902 and 0x2903 on CoreBluetooth backend.
  • Fixed cyclic references problem in CoreBluetooth backend causing memory leaks.
  • Fixed typehint for BleakScanner.__aexit__().

Removed

  • Removed undocumented/deprecated device keyword argument from BleakScannerBlueZDBus and BleakClientBlueZDBus.

2.1.1_ (2025-12-31)

Changed

  • Changed default connect timeout for BleakClient from 10 to 30 seconds.

Fixed

  • Fixed some cases of BleakError: Could not get GATT services: Unreachable in WinRT backend by adding a retry when getting GATT services.

2.1.0_ (2025-12-28)

Added

  • Added bluez parameter to BleakClient.start_notify() to allow forcing using "StartNotify" instead of "AcquireNotify" on BlueZ backend. Fixes #1885.
  • Added bleak.args.SizedBuffer type for better type hinting of buffer protocol parameters.

... (truncated)

Commits
  • f137b19 v3.0.0
  • ed0e123 bleak: deprecate 'adapter' kwarg
  • 4996b38 backends/p4android: remove self.__adapter
  • 3bc3a57 backends: remove "device" kwarg fallback
  • e60e372 backends/bluezdbus: handle special case of NotSupported on notifications
  • 36f7006 backends/bluezdbus/client: use assert_gatt_reply when starting notifications
  • 4a86e50 backends/bluezdbus/utils: improve GATT error decoding
  • 7991979 docs: update troubleshooting guide for macOS 26.2
  • 9693254 build(deps-dev): bump cryptography from 46.0.3 to 46.0.5
  • bdb0418 Fixed typehint for BleakScanner.aexit(). The three arguments to exit ...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [bleak](https://github.com/hbldh/bleak) to permit the latest version.
- [Release notes](https://github.com/hbldh/bleak/releases)
- [Changelog](https://github.com/hbldh/bleak/blob/develop/CHANGELOG.rst)
- [Commits](hbldh/bleak@v1.0.1...v3.0.0)

---
updated-dependencies:
- dependency-name: bleak
  dependency-version: 3.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants