From af66bc5e3ad62c76b51d87afb85c8f43f263b408 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 17 Oct 2023 17:15:57 +0200 Subject: [PATCH] Fix menu in homeassistant_yellow config flow (#102166) --- .../components/homeassistant_yellow/config_flow.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homeassistant_yellow/config_flow.py b/homeassistant/components/homeassistant_yellow/config_flow.py index 667b8f3d97a..7681d6d3847 100644 --- a/homeassistant/components/homeassistant_yellow/config_flow.py +++ b/homeassistant/components/homeassistant_yellow/config_flow.py @@ -63,6 +63,10 @@ class HomeAssistantYellowOptionsFlow(silabs_multiprotocol_addon.OptionsFlowHandl self, user_input: dict[str, Any] | None = None ) -> FlowResult: """Handle logic when on Supervisor host.""" + return await self.async_step_main_menu() + + async def async_step_main_menu(self, _: None = None) -> FlowResult: + """Show the main menu.""" return self.async_show_menu( step_id="main_menu", menu_options=[ @@ -85,7 +89,7 @@ class HomeAssistantYellowOptionsFlow(silabs_multiprotocol_addon.OptionsFlowHandl except (aiohttp.ClientError, TimeoutError, HassioAPIError) as err: _LOGGER.warning("Failed to write hardware settings", exc_info=err) return self.async_abort(reason="write_hw_settings_error") - return await self.async_step_confirm_reboot() + return await self.async_step_reboot_menu() try: async with asyncio.timeout(10): @@ -102,7 +106,7 @@ class HomeAssistantYellowOptionsFlow(silabs_multiprotocol_addon.OptionsFlowHandl return self.async_show_form(step_id="hardware_settings", data_schema=schema) - async def async_step_confirm_reboot( + async def async_step_reboot_menu( self, user_input: dict[str, Any] | None = None ) -> FlowResult: """Confirm reboot host."""