Fix reauth step in geocaching (#74089)

This commit is contained in:
epenet 2022-06-28 08:40:46 +02:00 committed by GitHub
parent 1804f70a5b
commit 530e1f9080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
"""Config flow for Geocaching."""
from __future__ import annotations
from collections.abc import Mapping
import logging
from typing import Any
@ -24,9 +25,9 @@ class GeocachingFlowHandler(AbstractOAuth2FlowHandler, domain=DOMAIN):
"""Return logger."""
return logging.getLogger(__name__)
async def async_step_reauth(self, user_input: dict[str, Any]) -> FlowResult:
async def async_step_reauth(self, user_input: Mapping[str, Any]) -> FlowResult:
"""Perform reauth upon an API authentication error."""
return await self.async_step_reauth_confirm(user_input=user_input)
return await self.async_step_reauth_confirm()
async def async_step_reauth_confirm(
self, user_input: dict[str, Any] | None = None