code: def _maybe_reconnect(self):
      
      with self._lock:
        if not self._connected: 
          _LOGGER.info("Connecting")
          self._do_login_locked()
          self._connected = True
          self._connect_cond.notify_all()
          _LOGGER.info("Connected")
docs: Reconnects to the controller if we have been previously disconnected.