Line 770 need to use this string to avoid this problem
elif (self._hvac_mode == HVAC_MODE_HEAT_COOL) and (is_comfortable or (self.hass.states.is_state(self.cooler_entity_id, STATE_ON) and too_cold) or (self.hass.states.is_state(self.heater_entity_id, STATE_ON) and too_hot)):
Line 770 need to use this string to avoid this problem elif (self._hvac_mode == HVAC_MODE_HEAT_COOL) and (is_comfortable or (self.hass.states.is_state(self.cooler_entity_id, STATE_ON) and too_cold) or (self.hass.states.is_state(self.heater_entity_id, STATE_ON) and too_hot)):