syssi / xiaomi_cooker

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

fix: python 3.11 support (Home Assistant 2023.06.0) #64

Closed pschmitt closed 1 year ago

pschmitt commented 1 year ago

Closes: #65

Just updated and noticed that the integration does not load.

This is due to the fact that Home Assistant now ships with Python 3.11 which removed the @asnycio.coroutine.

Ref: https://github.com/python/cpython/issues/87382