Aranet4-Python
Aranet4-Python copied to clipboard
Pin Bleak version + update unit tests
Seems like pip3 install aranet4 installs older versions of bleak (e.g. 0.20.2) if pyaranet4 was previously installed/removed, which throws the following error when attempting to use the module.
Python 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import aranet4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/dist-packages/aranet4/__init__.py", line 1, in <module>
from aranet4.client import Aranet4, Aranet4HistoryDelegate, Aranet4Error, Aranet4Scanner
File "/usr/local/lib/python3.11/dist-packages/aranet4/client.py", line 13, in <module>
from bleak.uuids import normalize_uuid_16
ImportError: cannot import name 'normalize_uuid_16' from 'bleak.uuids' (/usr/local/lib/python3.11/dist-packages/bleak/uuids.py)
normalize_uuid_16() was introduced in bleak v0.21.0
This MR bumps that dependency to a v0.22.3 (latest minor semver on 0.x)