Bleak

Latest version: v0.22.1

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

Scan your dependencies

Page 3 of 9

0.19.0

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

Added
-----
* Added support for Python 3.11. Merged 990.
* Added better error message for Bluetooth not authorized on macOS. Merged 1033.
* Added ``BleakDeviceNotFoundError`` which should is raised if a device can not
be found by ``connect``, ``pair`` and ``unpair``. Merged 1022.
* Added ``rssi`` attribute to ``AdvertisementData``. Merged 1047.
* Added ``BleakScanner.discovered_devices_and_advertisement_data`` property. Merged 1047.
* Added ``return_adv`` argument to ``BleakScanner.discover`` method. Merged 1047.
* Added ``BleakClient.unpair()`` implementation for BlueZ backend. Merged 1067.

Changed
-------
* Changed ``AdvertisementData`` to a named tuple. Merged 1047.
* A faster ``unpack_variants`` is now provided by dbus-fast. Merged 1055.

Fixed
-----
* On BlueZ, support creating additional instances running on a different event
loops (i.e. multiple pytest-asyncio cases). Merged 1034.
* Fixed unhandled exception in ``max_pdu_size_changed_handler`` in WinRT backend. Fixes 1039.
* Fixed stale services in WinRT backend causing ``WinError -2147483629``. Fixes 1061.

Removed
-------
Removed ``bleak.__version__``. Use ``importlib.metadata.version('bleak')`` instead.

0.18.1

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

Fixed
-----
* Reverted unintentional breaking parameter name changes. Fixes 1028.

0.18.0

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

Changed
-------
* Relaxed ``async-timeout`` dependency version to support different installations. Merged 1009.
* ``BleakClient.unpair()`` in WinRT backend can be called without being connected first. Merged 1012.
* Use relative imports internally. Merged 1007.
* ``BleakScanner`` and ``BleakClient`` are now concrete classes. Fixes 582.
* Deprecated ``BleakScanner.register_detection_callback()``.
* Deprecated ``BleakScanner.set_scanning_filter()``.
* Deprecated ``BleakClient.set_disconnected_callback()``.
* Deprecated ``BleakClient.get_services()``.
* Refactored common code in ``BleakClient.start_notify()``.
* (BREAKING) Changed notification callback argument from ``int`` to ``BleakGattCharacteristic``. Fixes 759.

Fixed
-----
* Fixed ``tx_power`` not included in ``AdvertisementData.__repr__`` when 0. Merged 1017.

0.17.0

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

Added
-----
* ``AdvertisementData`` class now has an attribute ``tx_power``. Merged 987.

Changed
-------
* ``BleakClient`` methods now raise ``BleakError`` if called when not connected in WinRT backend. Merged 973.
* Extended disconnect timeout to 120 seconds in WinRT backend. Fixes 807.
* Changed version check for BlueZ battery workaround to exclude versions >= 5.55. Merged 976.
* Use Poetry for build system and dependencies. Merged 978.
* The BlueZ D-Bus backend implements a services cache between connections to significancy improve reconnect performance.
To use the cache, call ``connect`` and ``get_services`` with the ``dangerous_use_bleak_cache``
argument to avoid services being resolved again. Merged 923.
* The BlueZ D-Bus backend now uses ``dbus-fast`` package instead of ``dbus-next`` which significantly improves performance. Merged 988.
* The BlueZ D-Bus backend will not avoid trying to connect to devices that are already connected. Fixes 992.
* Updated logging to lazy version and replaced format by f-string for ``BleakClientWinRT``. 1000.
* Added deprecation warning to ``discover()`` method. Merged 1005.
* BlueZ adapter is chosen dynamically if not provided, instead of using hardcoded "hci0". Fixes 513.

Fixed
-----
* Fixed wrong error message for BlueZ "Operation failed with ATT error". Merged 975.
* Fixed possible ``AttributeError`` when enabling notifications for battery service in BlueZ backend. Merged 976.
* Fixed use of wrong enum in unpair function of WinRT backend. Merged 986.
* Fixed inconsistent return types for ``properties`` and ``descriptors`` properties of ``BleakGATTCharacteristic``. Merged 989.
* Handle device being removed before ``GetManagedObjects`` returns in BlueZ backend. Fixes 996.
* Fixed crash in ``max_pdu_size_changed_handler`` in WinRT backend. Fixes 998.
* Fixes a race in the BlueZ D-Bus backend where the disconnect monitor would be removed before it could be awaited. Merged 999.

Removed
-------
* Removed ``BLEDeviceCoreBluetooth`` type from CoreBluetooth backend. Merged 977.

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.

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.