Closed fredriklj closed 2 years ago
It looks like it's been deprecated since Python 3.8 and is removed in 3.10; Event()
(etc.) objects are now expected to use asyncio.get_running_loop()
internally when necessary. This appears to tie into the asyncio policies framework introduced in Python 3.7.
I think the correct thing to do here is to remove all the loop
parameters from our use of asyncio, and from the next release of python-dali (0.10?) document that Python 3.6 is no longer officially supported, as discussed in #95.
This is fixed for the Tridonic DALI-USB driver in c72374c456b608c608ff65d2e076e4b49f734ba3
After upgrading my python environment I notices that the loop parameter has been removed from Event() and BoundedSemaphore(). Simply removing it seems to have fixed the issue, but I'm not sure on how to manage that inconsistency between versions.