'Set new target temperatures.'

def set_temperature(self, **kwargs):

    if (kwargs.get(ATTR_TEMPERATURE) is None):
        return False
    target_temperature = kwargs.get(ATTR_TEMPERATURE)
    device = self._cubehandle.cube.device_by_rf(self._rf_address)
    cube = self._cubehandle.cube
    with self._cubehandle.mutex:
        try:
            cube.set_target_temperature(device, target_temperature)
        except (socket.timeout, socket.error):
            _LOGGER.error('Setting    target    temperature    failed')
            return False
