Bleak

Latest version: v0.22.1

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

Scan your dependencies

Page 2 of 9

0.20.0

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

Added
-----
* Added ``BLEAK_DBUS_AUTH_UID`` environment variable for hardcoding D-Bus UID. Merged 1182.
* Added return type ``None`` to some scanner methods.
* Added optional hack to use Bluetooth address instead of UUID on macOS. Merged 1073.
* Added ``BleakScanner.find_device_by_name()`` class method.
* Added optional command line argument to use debug log level to all applicable examples.
* Added ``bleak.uuids.normalize_uuid_str()`` function.
* Added optional ``services`` argument to ``BleakClient()`` to filter services. Merged 654.
* Added automatic retry on ``le-connection-abort-by-local`` in BlueZ backend. Fixes 1220.

Changed
-------
* Dropped ``async-timeout`` dependency on Python >= 3.11.
* Deprecated ``BLEDevice.rssi`` and ``BLEDevice.metadata``. Fixes 1025.
* ``BLEDevice`` now uses ``__slots__`` to reduce memory usage. Merged 1117.
* ``BaseBleakClient.services`` is now ``None`` instead of empty service collection
until services are discovered.
* Include thread name in ``BLEAK_LOGGING`` output. Merged 1144.
* Updated PyObjC dependency on macOS to v9.x.

Fixed
-----
* Fixed invalid UTF-8 in ``uuids.uuid16_dict``.
* Fixed ``AttributeError`` in ``_ensure_success`` in WinRT backend.
* Fixed ``BleakScanner.stop()`` can raise ``BleakDBusError`` with ``org.bluez.Error.NotReady`` in BlueZ backend.
* Fixed ``BleakScanner.stop()`` hanging in WinRT backend when Bluetooth is disabled.
* Fixed leaking services when ``get_services()`` is cancelled in WinRT backend.
* Fixed disconnect monitor task not always cancelled on the BlueZ client. Merged 1159.
* Fixed WinRT scanner never calling ``detection_callback`` when a device does
not send a scan response. Fixes 1211.
* Fixed ``BLEDevice`` name sometimes incorrectly ``None``.
* Fixed unhandled exception in ``CentralManagerDelegate`` destructor on macOS. Fixes 1219.
* Fixed object passed to ``disconnected_callback`` is not ``BleakClient``. Fixes 1200.

0.19.5

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

Fixed
-----
* Fixed more issues with getting services in WinRT backend.

0.19.4

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

Fixed
-----
* Fixed ``TypeError`` in WinRT backend introduced in v0.19.3.

0.19.3

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

Fixed
-----
* Fixed ``TimeoutError`` when connecting to certain devices with WinRT backend. Fixes 604.

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.

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.