An error when change mode.
Describe the bug (描述一下问题) The error occurs when changing the state from off to heating / cooling. The only visible mode of operation is off. The other modes are invisible but I can select it and then I get the error visible on sreenshot. The air conditioner is Hyundai.
Screenshots / Logs / Pcap File(屏幕截图/日志/抓包文件)

Versions (版本信息)
- Home Assistant version: 2022.7.6
- Midea msmart version: v0.2.3
This is due to mac-zhou/midea-msmart#90
You can manually downgrade the dependency before the breaking commit. Be sure to run this in the container and/or virtual-env that HA runs in.
pip install git+https://github.com/mac-zhou/midea-msmart@29522b209d9dcd1775d0d57f9d27214d65e339c9
The same error, version 0.2.4 was uploaded
Did you install the commit I recommended or the 0.2.4 tag?
Look at line 332 and 336 in appliance.py. They should read
return IntEnumHelper.names(self._supported_op_modes)
and
return IntEnumHelper.names(self._supported_swing_modes)
I edited this file manually and changed these lines. Everything works now. Thank you very much for help.