mac-zhou / midea-msmart

This is a library to allow communicating to a Midea AC via the Local area network.
MIT License
147 stars 39 forks source link

Fix handling of missing temperature values #100

Open eranl opened 1 year ago

eranl commented 1 year ago

Move test for missing temperature value from appliance.py to command.py, so it is performed on the raw payload. Currently, the test is performed on the value after conversion, so it never holds, and missing temp values result in a 102.5C temp. Also, change default temp values from 0 to None.