'Set new target temperatures.'

def set_temperature(self, **kwargs):

    if (kwargs.get(ATTR_TEMPERATURE) is not None):
        self._target_temperature = kwargs.get(ATTR_TEMPERATURE)
    if ((kwargs.get(ATTR_TARGET_TEMP_HIGH) is not None) and (kwargs.get(ATTR_TARGET_TEMP_LOW) is not None)):
        self._target_temperature_high = kwargs.get(ATTR_TARGET_TEMP_HIGH)
        self._target_temperature_low = kwargs.get(ATTR_TARGET_TEMP_LOW)
    self.schedule_update_ha_state()
