etrv2mqtt
etrv2mqtt copied to clipboard
Doesnt run under python 3.10
Python 3.10 gives:
(etrv2mqtt) [root@HomeAssistant etrv2mqtt]# ~/venv/etrv2mqtt/bin/python3 -m libetrv.cli scan
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/venv/etrv2mqtt/lib/python3.10/site-packages/libetrv/cli.py", line 3, in
Workaround:
In etrv2mqtt/lib/python3.10/site-packages/libetrv/utils.py
change the first line
from collections import Iterable
to
from collections.abc import Iterable
this needs to be fixed in libetrv not here.