'Set new target temperature.'

def set_temperature(self, **kwargs):

    target_temp = kwargs.get(ATTR_TEMPERATURE)
    target_temp_low = kwargs.get(ATTR_TARGET_TEMP_LOW)
    target_temp_high = kwargs.get(ATTR_TARGET_TEMP_HIGH)
    if (target_temp is not None):
        if (self.current_operation == STATE_COOL):
            target_temp_high = target_temp
        if (self.current_operation == STATE_HEAT):
            target_temp_low = target_temp
    if (target_temp_low is not None):
        target_temp_low = target_temp_low
    if (target_temp_high is not None):
        target_temp_high = target_temp_high
    self.wink.set_temperature(target_temp_low, target_temp_high)
