syssi / xiaomi_cooker

Xiaomi Mi Electric Rice Cooker integration for Home Assistant
Apache License 2.0
143 stars 37 forks source link

Home Assistant 2024.2: python 3.12 breaks the integration #69

Open andige opened 9 months ago

andige commented 9 months ago

Hi!

Home Assistant 2024.2 unfortunately breaks this integration since it moved to python 3.12 and the "imp" module is deprecated in favour of importlib... :-(

I would love to see an updated version if you find the time :-)

Best regards and thanks for your work!


File "/usr/local/lib/python3.12/site-packages/construct/core.py", line 3, in <module>
    import struct, io, binascii, itertools, collections, pickle, sys, os, tempfile, hashlib, importlib, imp
ModuleNotFoundError: No module named 'imp'
syssi commented 9 months ago

I will bump the construct dependency as soon as possible.