ariston-remotethermo-home-assistant-v2
ariston-remotethermo-home-assistant-v2 copied to clipboard
Problem setting ch_set_temperature_zone1: ch_mode
Hi, I should have found a possibile bug in the the function _preparing_setting_http_data in ariston.py file.
In particular I think that the code on line 1878
if set_temp == economy_old and self._get_sensor_value(self._PARAM_CH_MODE) == "Time program":
should be:
if set_temp == economy_old and self._get_sensor_value((self._zone_sensor_name(self._PARAM_CH_MODE, zone))) == "Time program":
Else, the function _get_sensor_value is triggered with a _PRAM_CH_MODE without a zone.
Is it correct?