def set_solenoid(self, solenoid):
if type(solenoid) != bool:<EOL><INDENT>raise InvalidInput("<STR_LIT>")<EOL><DEDENT>self._config['<STR_LIT>'] = bool2int(solenoid)<EOL>self._q.put(self._config)<EOL>
Set the solenoid config.

        :param solenoid: Value to set the solenoid
        :type solenoid: bool
        :returns: None
        :raises: InvalidInput