def __init__(self, device=None, host=None, username=None, password=None,
                 port=25105, hub_version=2, loop=None, retry_interval=1,
                 auto_reconnect=True):
        """Init the Connecton class."""
        if os.name == 'nt':
            self._device = device.upper()
        else:
            self._device = device
        self._host = host
        self._username = username
        self._password = password
        self._port = port
        self._hub_version = hub_version
        self._loop = loop if loop else asyncio.get_event_loop()
        self._retry_interval = retry_interval
        self._closed = True
        self._closing = False
        self._halted = False
        self._auto_reconnect = auto_reconnect
        self._protocol = None
def __init__ ( self , device = None , host = None , username = None , password = None , port = 25105 , hub_version = 2 , loop = None , retry_interval = 1 , auto_reconnect = True ) : if os . name == 'nt' : self . _device = device . upper ( ) else : self . _device = device self . _host = host self . _username = username self . _password = password self . _port = port self . _hub_version = hub_version self . _loop = loop if loop else asyncio . get_event_loop ( ) self . _retry_interval = retry_interval self . _closed = True self . _closing = False self . _halted = False self . _auto_reconnect = auto_reconnect self . _protocol = None
Init the Connecton class.