def connection_made(self, transport):
        """Start the Hub connection process.

        Called when asyncio.Protocol establishes the network connection.
        """
        _LOGGER.info('Connection established to Hub')
        _LOGGER.debug('Transport: %s', transport)
        self.transport = transport

        self._restart_writer = True
        self.restart_writing()

        if self._aldb.status != ALDBStatus.LOADED:
            asyncio.ensure_future(self._setup_devices(), loop=self._loop)
def connection_made ( self , transport ) : _LOGGER . info ( 'Connection established to Hub' ) _LOGGER . debug ( 'Transport: %s' , transport ) self . transport = transport self . _restart_writer = True self . restart_writing ( ) if self . _aldb . status != ALDBStatus . LOADED : asyncio . ensure_future ( self . _setup_devices ( ) , loop = self . _loop )
Start the Hub connection process.

        Called when asyncio.Protocol establishes the network connection.