Adjust async_step_reauth documentation (#2346)

* Adjust async_step_reauth documentation

* Update config_entries_config_flow_handler.md
This commit is contained in:
epenet 2024-10-02 01:51:14 +02:00 committed by GitHub
parent b86ac6c3f1
commit 7256c34950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,14 +332,18 @@ class OAuth2FlowHandler(
reauth_entry: ConfigEntry | None = None
async def async_step_reauth(self, user_input=None):
async def async_step_reauth(
self, entry_data: Mapping[str, Any]
) -> ConfigFlowResult:
"""Perform reauth upon an API authentication error."""
self.reauth_entry = self.hass.config_entries.async_get_entry(
self.context["entry_id"]
)
return await self.async_step_reauth_confirm()
async def async_step_reauth_confirm(self, user_input=None):
async def async_step_reauth_confirm(
self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Dialog that informs the user that reauth is required."""
if user_input is None:
return self.async_show_form(