Bleak

Latest version: v0.22.3

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

0.16.0

======================

Added
-----
* Added ``BleakGattCharacteristic.max_write_without_response_size`` property. Fixes 738.

Fixed
-----
* Fixed regression in v0.15 where devices removed from BlueZ while scanning
were still listed in ``BleakScanner.discovered_devices``. Fixes 942.
* Fixed possible bad connection state in BlueZ backend. Fixes 951.

Changed
-------
* Made BlueZ D-Bus signal callback logging lazy to improve performance. Merged 912.
* Switch to using ``async_timeout`` instead of ``asyncio.wait_for for performance``. Merged 916.
* Improved performance of ``BlueZManager.get_services()``. Fixes 927.

Removed
-------
* Removed explicit inheritance from object in class declarations. Merged 922.
* Removed first seen filter in ``BleakScanner`` detection callbacks on BlueZ backend. Merged 964.

0.15.1

======================

Fixed
-----
* The global BlueZ manager now disconnects correctly on exception. Merged 918.
* Handle the race in the BlueZ D-Bus backend where the device disconnects during
the connection process which presented as ``Failed to cancel connection``. Merged 919.
* Ensure the BlueZ D-Bus scanner can reconnect after DBus disconnection. Merged 920.
* Adjust default timeout for ``read_gatt_char()`` with CoreBluetooth to 20s. Fixes 926.

0.15.0

======================

Added
-----

* Added new ``assigned_numbers`` module and ``AdvertisementDataType`` enum.
* Added new ``bluez`` kwarg to ``BleakScanner`` in BlueZ backend.
* Added support for passive scanning in the BlueZ backend. Fixes 606.
* Added option to use cached services, characteristics and descriptors in WinRT backend. Fixes 686.
* Added ``PendingDeprecationWarning`` to use of ``address_type`` as keyword argument. It will be moved into the
``winrt`` keyword instead according to 623.
* Added better error message when adapter is not present in BlueZ backend. Fixes 889.

Changed
-------

* Add ``py.typed`` file so mypy discovers Bleak's type annotations.
* UUID descriptions updated to 2022-03-16 assigned numbers document.
* Replace use of deprecated ``asyncio.get_event_loop()`` in Android backend.
* Adjust default timeout for ``read_gatt_char()`` with CoreBluetooth to 10s. Merged 891.
* ``BleakScanner()`` args ``detection_callback`` and ``service_uuids`` are no longer keyword-only.
* ``BleakScanner()`` arg ``scanning_mode`` is no longer Windows-only and is no longer keyword-only.
* All ``BleakScanner()`` instances in BlueZ backend now use common D-Bus object manager.
* Deprecated ``filters`` kwarg in ``BleakScanner`` in BlueZ backend.
* BlueZ version is now checked on first connection instead of import to avoid import side effects. Merged 907.

Fixed
-----

* Documentation fixes.
* On empty characteristic description from WinRT, use the lookup table instead of returning empty string.
* Fixed detection of first advertisement in BlueZ backend. Merged 903.
* Fixed performance issues in BlueZ backend caused by calling "GetManagedObjects" each time a
``BleakScanner`` scans or ``BleakClient`` is connected. Fixes 500.
* Fixed not handling "InterfacesRemoved" in ``BleakClient`` in BlueZ backend. Fixes 882.
* Fixed leaking D-Bus socket file descriptors in BlueZ backend. Fixes 805.

Removed
-------

* Removed fallback to call "ConnectDevice" when "Connect" fails in Bluez backend. Fixes 806.

0.14.3

======================

Changed
-------

* Suppress macOS 12 scanner bug error message for macOS 12.3 and higher. Fixes 720.
* Added filters ``Discoverable`` and ``Pattern`` to BlueZ D-Bus scanner. Fixes 790.

Fixed
-----

* Fixed reading the battery level returns a zero-filled ``bytearray`` on BlueZ >= 5.48. Fixes 750.
* Fixed unpairing does not work on windows with WinRT. Fixes 699
* Fixed leak of ``_disconnect_futures`` in ``CentralManagerDelegate``.
* Fixed callback not removed from ``_disconnect_callbacks`` on disconnect in ``CentralManagerDelegate``.

0.14.2

======================

Changed
-------

* Updated ``bleak-winrt`` dependency to v1.1.1. Fixes 741.

Fixed
-----

* Fixed ``name`` is ``'Unknown'`` in WinRT backend. Fixes 736.

0.14.1

======================

Fixed
-----

* Fixed ``AttributeError`` when passing ``BLEDevice`` to ``BleakClient``
constructor on WinRT backend. Fixes 731.

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.