'Set new target temperature.'

def set_temperature(self, **kwargs):

    if (kwargs.get(ATTR_TEMPERATURE) is not None):
        temperature = kwargs.get(ATTR_TEMPERATURE)
    else:
        return
    self.values.primary.data = temperature
