From b86ac6c3f10d1786cb759c61bd2ae22f0b708226 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Oct 2024 01:50:09 +0200 Subject: [PATCH] Adjust async_step_reconfigure documentation (#2345) * Adjust async_step_reconfigure documentation * Update config_entries_config_flow_handler.md --- docs/config_entries_config_flow_handler.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/config_entries_config_flow_handler.md b/docs/config_entries_config_flow_handler.md index d63cb59e..c291ba07 100644 --- a/docs/config_entries_config_flow_handler.md +++ b/docs/config_entries_config_flow_handler.md @@ -276,7 +276,14 @@ import voluptuous as vol class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): """Config flow for Example integration.""" - async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None): + async def async_step_reconfigure( + self, entry_data: Mapping[str, Any] + ) -> ConfigFlowResult: + return await async_step_reconfigure_confirm() + + async def async_step_reconfigure_confirm( + self, user_input: dict[str, Any] | None = None + ) -> ConfigFlowResult: if user_input is not None: pass # TODO: process user input