toreamun / amshan

Package to help decode smart power meter data stream of Cosem HDLC frames used by MBUS. The package has special support of formats for Aidon, Kaifa and Kamstrup meters used in Norway (AMS HAN).
MIT License
8 stars 7 forks source link

fix: python3.11 support #11

Closed ruant closed 1 year ago

ruant commented 1 year ago

Due to changes in python 3.11 coroutines is now not allowed to be passed to wait directly

Check this for more info: https://docs.python.org/3/library/asyncio-task.html#asyncio.wait

Check the issue https://github.com/toreamun/amshan-homeassistant/issues/62 for more info. Credits goes to https://github.com/m0bygit for the fix!

Fixes https://github.com/toreamun/amshan-homeassistant/issues/62

toreamun commented 1 year ago

Thanks @ruant

ruant commented 1 year ago

Thanks, but the credit should go to https://github.com/m0bygit for the code changes. I just made the PR :)