Bleak

Latest version: v0.22.3

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

Scan your dependencies

Page 3 of 9

0.19.2

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

Fixed
------
* Fixed crash when getting services in WinRT backend in Python 3.11. Fixes 1112.
* Fixed cache mode when retrying get services in WinRT backend. Merged 1102.
* Fixed ``KeyError`` crash in BlueZ backend when removing non-existent property. Fixes 1107.

0.19.1

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

Fixed
-----
* Fixed crash in Android backend introduced in v0.19.0. Fixes 1085.
* Fixed service discovery blocking forever if device disconnects in BlueZ backend. Merged 1092.
* Fixed ``AttributeError`` crash when scanning on Windows builds < 19041. Fixes 1094.

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.

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.