pyControl4 icon indicating copy to clipboard operation
pyControl4 copied to clipboard

failure on python 3.11+

Open mike-dubman opened this issue 4 months ago • 0 comments

The original error: TypeError: 'Timeout' object does not support the context manager protocol Cause: In Python 3.11+, async_timeout.timeout() must be used with async with, not with. Current code used with, which raised this error. Proposed Fix : Replace all with async_timeout.timeout(...) with async with async_timeout.timeout(...) in:

pyControl4/account.py pyControl4/director.py pyControl4/websocket.py

unless backward compat is important for python before 3.11 version

Please advise and can submit patch or you are welcome to quick fix it.

mike-dubman avatar Sep 18 '25 16:09 mike-dubman