def set_fan(self, fan):
if type(fan) != int and fan not in range(<NUM_LIT:0>, <NUM_LIT:11>):<EOL><INDENT>raise InvalidInput("<STR_LIT>")<EOL><DEDENT>self._config['<STR_LIT>'] = fan<EOL>self._q.put(self._config)<EOL>
Set the fan config.

        :param fan: Value to set the fan
        :type fan: int [0-10]
        :returns: None
        :raises: InvalidInput