From a29a9f340aa13a25dc3b7f31821e26e8c8399dd5 Mon Sep 17 00:00:00 2001 From: Sillyfrog Date: Sun, 3 Nov 2024 21:33:00 +1000 Subject: [PATCH] Fix TypeError, take 2 --- aiopulse2/devices.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aiopulse2/devices.py b/aiopulse2/devices.py index 265b899..9773853 100644 --- a/aiopulse2/devices.py +++ b/aiopulse2/devices.py @@ -192,7 +192,7 @@ async def serialrunner(self): buf = const.DEVICE_QUERY_NAME.format(id=rollerid) writer.write(buf.encode()) while True: - with async_timeout.timeout(3): + async with async_timeout.timeout(3): response = await reader.readuntil(b";") if len(response) > 0: _LOGGER.debug("recv < %s", response) diff --git a/setup.py b/setup.py index 895a97f..f206be9 100644 --- a/setup.py +++ b/setup.py @@ -8,13 +8,13 @@ setuptools.setup( name="aiopulse2", packages=setuptools.find_packages(), - version="0.9.0", + version="0.9.1", license="apache-2.0", description="Rollease Acmeda Automate Pulse Hub v2 integration.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/sillyfrog/aiopulse2", - download_url="https://github.com/sillyfrog/aiopulse2/archive/v0.9.0.tar.gz", + download_url="https://github.com/sillyfrog/aiopulse2/archive/v0.9.1.tar.gz", keywords=["automation"], install_requires=["async_timeout>=3.0", "websockets>=8.1"], classifiers=[