This PR supports the new Climate 1.0 introduced in HA 0.96
Changes:
Replace all old properties and function to adapt for new Climate 1.0
remove is_on property as it is no longer exists.
Add a new value _last_on_operation to save the operation when the AC is on, in Climate 1.0, the HA status always the same as hvac_mode, you can not just use hvac_mode as the parameter in the _send_configruation function due to the reason that HVAC_MODE_OFF is not a valid operation in the python-miio library.
This PR supports the new Climate 1.0 introduced in HA 0.96
Changes:
Replace all old properties and function to adapt for new Climate 1.0
remove is_on property as it is no longer exists.
Add a new value _last_on_operation to save the operation when the AC is on, in Climate 1.0, the HA status always the same as hvac_mode, you can not just use hvac_mode as the parameter in the _send_configruation function due to the reason that HVAC_MODE_OFF is not a valid operation in the python-miio library.