'Set new target temperature.'

def set_temperature(self, **kwargs):

    low_temp = kwargs.get(ATTR_TARGET_TEMP_LOW)
    high_temp = kwargs.get(ATTR_TARGET_TEMP_HIGH)
    temp = kwargs.get(ATTR_TEMPERATURE)
    if ((self.current_operation == STATE_AUTO) and (low_temp is not None) and (high_temp is not None)):
        self.set_auto_temp_hold(int(low_temp), int(high_temp))
    elif (temp is not None):
        self.set_temp_hold(int(temp))
    else:
        _LOGGER.error('Missing    valid    arguments    for    set_temperature    in    %s', kwargs)
