Fix menu in mysensors config flow (#102169)

This commit is contained in:
Erik Montnemery 2023-10-17 16:38:19 +02:00 committed by GitHub
parent ab29c796da
commit fc09d87c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,12 @@ class MySensorsConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
self, user_input: dict[str, str] | None = None
) -> FlowResult:
"""Create a config entry from frontend user input."""
return await self.async_step_select_gateway_type()
async def async_step_select_gateway_type(
self, user_input: dict[str, str] | None = None
) -> FlowResult:
"""Show the select gateway type menu."""
return self.async_show_menu(
step_id="select_gateway_type",
menu_options=["gw_serial", "gw_tcp", "gw_mqtt"],