'Set new target temperature.'

def set_temperature(self, **kwargs):

    temperature = kwargs.get(ATTR_TEMPERATURE)
    if (temperature is None):
        return
    if (self._current_operation == STATE_COOL):
        self.device.t_cool = (round((temperature * 2.0)) / 2.0)
    elif (self._current_operation == STATE_HEAT):
        self.device.t_heat = (round((temperature * 2.0)) / 2.0)
    elif (self._current_operation == STATE_AUTO):
        if (self._tstate == 'Cool'):
            self.device.t_cool = (round((temperature * 2.0)) / 2.0)
        elif (self._tstate == 'Heat'):
            self.device.t_heat = (round((temperature * 2.0)) / 2.0)
    if (self._hold_temp or self._away):
        self.device.hold = 1
    else:
        self.device.hold = 0
