biker91620 / ha-cozytouch

Cozytouch support for Home Assistant
GNU General Public License v2.0
16 stars 22 forks source link

Fix issue "KeyError" with version 1.5.7 #23

Open browetd opened 4 years ago

browetd commented 4 years ago

First this is the first time I am submitting a pull request so no sure I did it right...

This is a proposed change in file const.py to fix the issue encountered (KeyError) with version 1.5 (see issue 16 in Cyr-ius/hass-cozytouch repository)...

  1. I corrected a typo in const.py: replaced <"frostprection": PRESET_FROSTPROTECTION> by <"frostprotection": PRESET_FROSTPROTECTION>
  2. Added two lines in const.py to create a preset called PRESET_NONE to handle the preset mode "off"...

See atteched Zip Files...

const.zip