COZYTOUCH error message "Keyerror" - version 1.5.7 (latest)

Hello, I have the following error message (see below) when I start COZYTOUCH integration… I submitted an issue on cozytouch weeks ago but due probably to their integration effort they cannot look at this issue right now… What is strange to me is that the error is mentionning init.py from HA site-packages and not the corresponding custom component $config/custom_components/init.py… Maybe not the reason of the error but anyone has the same error ? I am using cozytouch 1.5.7 and last working version was 1.4.4… I have three Thermor heaters… Cozytouch is installed using HACS and the configuration is done via the integration interface (nothing in configuration.yaml)… Thanks !

2020-08-23 14:09:30 ERROR (MainThread) [homeassistant.components.climate] Error while setting up cozytouch platform for climate
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 192, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 301, in async_add_entities
    await asyncio.gather(*tasks)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 474, in _async_add_entity
    entity.async_write_ha_state()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 281, in async_write_ha_state
    self._async_write_ha_state()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 307, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/climate/__init__.py", line 262, in state_attributes
    data[ATTR_PRESET_MODE] = self.preset_mode
  File "/home/homeassistant/.homeassistant/custom_components/cozytouch/climate.py", line 199, in preset_mode
    return COZY_TO_PRESET_MODE[preset]
KeyError: 'frostprotection'

I made some additional tests and the problem is coming with the “frostprotection” preset mode… If I am not using the service “set_preset_mode” with “Frostprotection”, I can switch them on/off but if I am forcing the frostprotection mode, than the radiator is stuck in this mode and the error above is logged in home-assistant logfile… No way to go back to another mode (always the above error), and even in Cozytouch native app, it is very difficult to get it back to work again without resetting the heater !!! If I am using only Cozytouch native app, frost protection is working as expected… Very strange behavior…

Very strange behaviour !!!.. When a service is applied through an automation (change “preset mode” for example as this is the issue), I am getting an error message (see first message) and nothing appends… If I am using the same command via the “State” panel through the HA interface (Development tools > state), there is also an error message appearing on the bottom left of the screen but the command is executed ??? Bizarre, bizarre… I do not understand ! Any one can help what am i doing wrong ?

Got it fixed by modifying 3 lines in the const.py file see https://github.com/Cyr-ius/hass-cozytouch/issues/16