Commit dbc9d52
authored
Change library from bluepy to Bleak (with async) (#32)
* Update __init__.py
* Basic framework for bleak conversion.
* Update __init__.py
* Fix methods that return static data.
* Fixed last few functions.
* Ensure CaSe for discovery data, connect_lock for sensitive functions.
-No passive scan mode available so I removed references.
* Updated with latest changes on pyswitchbot
* Update messages to latest released version.
* Rework get device by type functions.
* Add missing model key.
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Restructure for non blocking async.
* Attempt to improve reliability on weak signal device.
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* A fix for a few dict keys being overwritten.
* Replace sleep with asyncio sleep.
* oops, forgot to await asyncio.sleep.
* Should probably keep the connect_lock on this function.
* Remove client.read_gatt_char, as notification is already in memory after writing.1 parent 7669fda commit dbc9d52
2 files changed
+171
-279
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments