def METHOD_NAME(self):
    """Get a timeout delay with a 1 second backoff for each attempt."""
    if self.client.was_consuming:
        self._reconnect_delay = 0
    else:
        self._reconnect_delay += 1
    if self._reconnect_delay > 30:  # noqa: PLR2004
        self._reconnect_delay = 30
    return self._reconnect_delay