File "/home/vscode/.local/lib/python3.12/site-packages/aranet4/client.py", line 377, in __init__
if (not device.name and len(raw_bytes) in [7,22]) or "Aranet4" in device.name:
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
Maybe change this to something like:
if device.name and "Aranet4" in device.name or len(raw_bytes) in [7,22]:
raw_bytes.insert(0,0)
https://github.com/Anrijs/Aranet4-Python/blob/7ba172406b2ba6f523cf6ed7c29a1c2d1f3d993c/aranet4/client.py#L377-L378 breaks Aranet2 device without name
Maybe change this to something like: