-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backends: refactor BleakClient.start_notify
* Repeated code for BleakClient.start_notify() is moved from the backends to the top-level BleakClient class. * self._notification_callbacks is removed from BaseBleakClient since it is not used in all backends. * A new (internal) NotifyCallback type alias is added so we don't have to repeat the Callable with args multiple times. * BaseBleakClient.start_notify() arg types are changed. The battery workaround in the BlueZ backend is removed since the refactored top-level code will fail before calling the backend code. Hopefully this should mostly go unnoticed since it will only affect BlueZ < 5.55 and most users are reporting at least that version on GitHub.
- Loading branch information
Showing
8 changed files
with
85 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.