hristo-atanasov / Tasmota-IRHVAC

Home Assistant platform for controlling IR Air Conditioners via Tasmota IRHVAC command and compatible hardware
200 stars 67 forks source link

fix #86 strict handling of `_hvac_mode` and `_last_on_mode #87

Closed nao-pon closed 2 years ago

nao-pon commented 2 years ago

Fixed a possible incorrect value for _last_on_mode.

At the same time, I used the constants HVAC_MODE_* to improve the readability of the code and to ensure lowercase value.