You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using the library with Python 3.13 and I’m seeing the following warning during import:
WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.13/site-packages/miio/miot_device.py:23: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior
Bool = partial(_str2bool)
It looks like the usage of functools.partial in miot_device.py line 23 will no longer work as expected in future Python versions (3.14+).
Would it be possible to update the code to avoid this warning and keep compatibility with future Python versions?