Skip to content

Commit dbc9d52

Browse files
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

File tree

2 files changed

+171
-279
lines changed

2 files changed

+171
-279
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
setup(
44
name = 'PySwitchbot',
55
packages = ['switchbot'],
6-
install_requires=['bluepy'],
7-
version = '0.13.3',
6+
install_requires=['bleak'],
7+
version = '0.14.0',
88
description = 'A library to communicate with Switchbot',
99
author='Daniel Hjelseth Hoyer',
1010
url='https://github.com/Danielhiversen/pySwitchbot/',

0 commit comments

Comments
 (0)