Skip to content

Commit 0150ef3

Browse files
committed
add concrete BleakScanner and BleakClient classes
This allows us to put all of the documentation, including platform- specific quirks, for BleakScanner and BleakClient in one place. Docs for these classes are move to new sub-pages of the API docs page and the backend docs are moved to the backend pages of the docs. It will also allow us to eventually eliminate quite a bit of duplicated code from the backends by moving it to these shared classes. Several methods that provided duplicate functionality have been deprecated (previously they were required because of backend implementation details but can now be safely removed from the top-level classes).
1 parent 666840a commit 0150ef3

26 files changed

+940
-315
lines changed

.github/workflows/format_and_lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- name: Lint with flake8
2222
run: pipx run poetry run flake8 . --count --show-source --statistics
2323
- name: Build docs
24-
run: READTHEDOCS=True pipx run poetry run make -C docs html
24+
run: pipx run poetry run make -C docs html

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Changed
1515
* Relax ``async-timeout`` version to support different installations. Merged #1009.
1616
* ``unpair`` function of ``BleakClient`` in WinRT backend can be called without being connected to remove stored device information
1717
* Use relative imports internally. Merged #1007.
18+
* ``BleakScanner`` and ``BleakClient`` are now concrete classes. Fixes #582.
19+
* Deprecated ``BleakScanner.register_detection_callback()``.
20+
* Deprecated ``BleakScanner.set_scanning_filter()``.
21+
* Deprecated ``BleakClient.set_disconnected_callback()``.
22+
* Deprecated ``BleakClient.get_services()``.
1823

1924
Fixed
2025
-----

0 commit comments

Comments
 (0)