def _reset_state(self) -> None:
        """Reset state of the :class:`Failsafe` object."""
        self._last_update = 0  # holds information when failsafe was triggered last time.
        self._name = ''  # name of the cluster leader
        self._conn_url = None  # PostgreSQL conn_url of the leader
        self._api_url = None  # Patroni REST api_url of the leader
        self._slots = None  # state of replication slots on the leader
Reset state of the :class:`Failsafe` object.
patroni/ha.py