def init_done(self, fut):
        """Server ready.

        If we get OSError during init the device is not available.
        """
        try:
            if fut.exception():
                fut.result()
        except OSError as err:
            _LOGGER.debug('Got exception %s', err)
            self.retry()
def init_done ( self , fut ) : try : if fut . exception ( ) : fut . result ( ) except OSError as err : _LOGGER . debug ( 'Got exception %s' , err ) self . retry ( )
Server ready.

        If we get OSError during init the device is not available.