mac-zhou / midea-ac-py

Home Assistant Custom Integration for Midea Group(Hualing, Senville, Klimaire, AirCon, Century, Pridiom, Thermocore, Comfee, Toshiba, Carrier, Goodman, Friedrich, Samsung, Kenmore, Trane, Lennox, LG and much more) Air Conditioners via LAN.
MIT License
539 stars 103 forks source link

An error when change mode. #186

Open djlukas7 opened 2 years ago

djlukas7 commented 2 years ago

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(屏幕截图/日志/抓包文件)

obraz obraz

Versions (版本信息)

mill1000 commented 2 years ago

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
djlukas7 commented 2 years ago

The same error, version 0.2.4 was uploaded

obraz
mill1000 commented 2 years ago

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)
djlukas7 commented 2 years ago

I edited this file manually and changed these lines. Everything works now. Thank you very much for help.