code: def set_fan(self, fan):
          
          if type(fan) != int and fan not in range(0, 11):
              raise InvalidInput("Fan value must be int between 0-10")
          self._config['fan'] = fan
          self._q.put(self._config)
docs: Set the fan config.
  
          :param fan: Value to set the fan
          :type fan: int [0-10]
          :returns: None
          :raises: InvalidInput