Akulatraxas / ha-modbusproxy

Hassio Addon packaging modus-proxy
Apache License 2.0
31 stars 3 forks source link

ha-modbus-proxy reporting depricated function #7

Open ChristophCaina opened 1 year ago

ChristophCaina commented 1 year ago

loop-Argument is depricated since Python 3.8 and will be removed in Python 3.10

right now, the addon is still working... but it might cause issues when switching to Py3.10

2022-10-15 22:54:31,735     INFO modbus-proxy: Starting...
2022-10-15 22:54:31,737  WARNING py.warnings: /usr/lib/python3.9/asyncio/base_events.py:1460: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  infos = await tasks.gather(*fs, loop=self)
2022-10-15 22:54:31,740  WARNING py.warnings: /usr/lib/python3.9/asyncio/base_events.py:1518: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  await tasks.sleep(0, loop=self)

I haven't seen this error running another modbus-proxy on a proxmox lxc... therefore, not sure, if this might be an issue in the original modbus-proxy, too

Akulatraxas commented 1 year ago

@ChristophCaina there is no loop code in the modbus proxy. the message comes from the asyncio dependency. i hope they fix it on their side