'Set new target temperature.'

def set_temperature(self, **kwargs):

    target_temp_low = kwargs.get(ATTR_TARGET_TEMP_LOW)
    target_temp_high = kwargs.get(ATTR_TARGET_TEMP_HIGH)
    if (self._mode == STATE_HEAT_COOL):
        if ((target_temp_low is not None) and (target_temp_high is not None)):
            temp = (target_temp_low, target_temp_high)
    else:
        temp = kwargs.get(ATTR_TEMPERATURE)
    _LOGGER.debug('Nest    set_temperature-output-value=%s', temp)
    self.device.target = temp
