From 7256c34950e32263ab8338a5146f8ff8f34f42b0 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Oct 2024 01:51:14 +0200 Subject: [PATCH] Adjust async_step_reauth documentation (#2346) * Adjust async_step_reauth documentation * Update config_entries_config_flow_handler.md --- docs/config_entries_config_flow_handler.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/config_entries_config_flow_handler.md b/docs/config_entries_config_flow_handler.md index c291ba07..edd07246 100644 --- a/docs/config_entries_config_flow_handler.md +++ b/docs/config_entries_config_flow_handler.md @@ -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(