Releases: hbldh/bleak
Releases · hbldh/bleak
v0.19.4
v0.19.3
v0.19.2
v0.19.1
v0.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 byconnect
,pair
andunpair
. Merged #1022. - Added
rssi
attribute toAdvertisementData
. Merged #1047. - Added
BleakScanner.discovered_devices_and_advertisement_data
property. Merged #1047. - Added
return_adv
argument toBleakScanner.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.
v0.18.1
v0.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
andBleakClient
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
toBleakGattCharacteristic
. Fixes #759.
Fixed
- Fixed
tx_power
not included inAdvertisementData.__repr__
when 0. Merged #1017.
v0.17.0
Added
AdvertisementData
class now has an attributetx_power
. Merged #987.
Changed
BleakClient
methods now raiseBleakError
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. Merged #923.
- The BlueZ D-Bus backend now uses
dbus-fast
package instead ofdbus-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
anddescriptors
properties ofBleakGATTCharacteristic
. 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.
v0.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 inBleakScanner.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
v0.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 asFailed to cancel connection
. Merged #919. - Ensure the BlueZ D-Bus scanner can reconnect after DBus disconnection. Merged #920.