Bump bleak from 2.1.1 to 3.0.1 by dependabot[bot] · Pull Request #183 · bretterer/rivian-python-client
Bumps bleak from 2.1.1 to 3.0.1.
Release notes
Sourced from bleak's releases.
v3.0.1
Fixed
- Fixed
AttributeErrorinstart_notify()andstop_notify()on Android. Fixes #1834.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
BleakGATTProtocolErrorto 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
BleakDBusErrorand parsed the string to get the GATT error, you can now catchBleakGATTProtocolErrorinstead and it has acodeproperty to get the actual error code.Another change of note is the deprecation of the
adapterkeyword 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 kwargadapter="hci0"and the newbluez={"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
adapterattribute tobleak.args.bluez.BlueZClientArgsandbleak.args.bluez.BlueZScannerArgs.- Added
bluezkeyword argument toBleakClient.- Added new
bleak.args.bluez.BlueZClientArgsclass.- Added
bleak.exc.BleakGATTProtocolErrorandbleak.exc.BleakGATTProtocolErrorCodeclasses.- Added type hints and documentation for
use_cachedkwarg forread_gatt_char()andread_gatt_descriptor()methods inBleakClient.- Added support for
"use_cached"kwarg toread_gatt_char()andread_gatt_descriptor()methods in BlueZ backend.Changed
- Deprecated
adapterkeyword argument inBleakScannerandBleakClient.- Changed GATT read and write methods to raise
BleakGATTProtocolErrorwhen a GATT protocol error occurs.- Changed start/stop scanning on CoreBluetooth so that the
isScanningproperty is not checked anymore.- Changed
BleakClient.write_gatt_descriptor()to raiseValueErrorwhen attempting to write to the descriptor 0x2902 (Client Characteristic Configuration Descriptor, CCCD). Usestart_notify()andstop_notify()instead.Fixed
- Fixed occasional
EOFErrorwhen 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
devicekeyword argument fromBleakScannerBlueZDBusandBleakClientBlueZDBus.
Changelog
Sourced from bleak's changelog.
3.0.1_ (2026-03-25)Fixed
- Fixed
AttributeErrorinstart_notify()andstop_notify()on Android. Fixes #1834.
3.0.0_ (2026-03-22)Added
- Added
adapterattribute tobleak.args.bluez.BlueZClientArgsandbleak.args.bluez.BlueZScannerArgs.- Added
bluezkeyword argument toBleakClient.- Added new
bleak.args.bluez.BlueZClientArgsclass.- Added
bleak.exc.BleakGATTProtocolErrorandbleak.exc.BleakGATTProtocolErrorCodeclasses.- Added type hints and documentation for
use_cachedkwarg forread_gatt_char()andread_gatt_descriptor()methods inBleakClient.- Added support for
"use_cached"kwarg toread_gatt_char()andread_gatt_descriptor()methods in BlueZ backend.Changed
- Deprecated
adapterkeyword argument inBleakScannerandBleakClient.- Changed GATT read and write methods to raise
BleakGATTProtocolErrorwhen a GATT protocol error occurs.- Changed start/stop scanning on CoreBluetooth so that the
isScanningproperty is not checked anymore.- Changed
BleakClient.write_gatt_descriptor()to raiseValueErrorwhen attempting to write to the descriptor 0x2902 (Client Characteristic Configuration Descriptor, CCCD). Usestart_notify()andstop_notify()instead.Fixed
- Fixed occasional
EOFErrorwhen 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
devicekeyword argument fromBleakScannerBlueZDBusandBleakClientBlueZDBus.
Commits
3f967abv3.0.10656da6backends/p2android: fix notification_descriptor AttributeError78d5699Merge pull request #1948 from hbldh/master1664e8cMerge pull request #1947 from hbldh/release/v3.0.0f137b19v3.0.0ed0e123bleak: deprecate 'adapter' kwarg4996b38backends/p4android: remove self.__adapter3bc3a57backends: remove "device" kwarg fallbacke60e372backends/bluezdbus: handle special case of NotSupported on notifications36f7006backends/bluezdbus/client: use assert_gatt_reply when starting notifications- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)