1 """Config flow for the Thread integration."""
3 from __future__
import annotations
10 from .const
import DOMAIN
14 """Handle a config flow for Thread."""
19 """Set up by import from async_setup."""
24 self, user_input: dict[str, str] |
None =
None
25 ) -> ConfigFlowResult:
26 """Set up by import from async_setup."""
31 self, discovery_info: zeroconf.ZeroconfServiceInfo
32 ) -> ConfigFlowResult:
33 """Set up because the user has border routers."""
38 self, user_input: dict[str, Any] |
None =
None
39 ) -> ConfigFlowResult:
40 """Confirm the setup."""
41 if user_input
is not None or not onboarding.async_is_onboarded(self.hass):
ConfigFlowResult async_step_confirm(self, dict[str, Any]|None user_input=None)
ConfigFlowResult async_step_import(self, None import_data)
ConfigFlowResult async_step_user(self, dict[str, str]|None user_input=None)
ConfigFlowResult async_step_zeroconf(self, zeroconf.ZeroconfServiceInfo discovery_info)
None _async_handle_discovery_without_unique_id(self)
ConfigFlowResult async_create_entry(self, *str title, Mapping[str, Any] data, str|None description=None, Mapping[str, str]|None description_placeholders=None, Mapping[str, Any]|None options=None)
ConfigFlowResult async_show_form(self, *str|None step_id=None, vol.Schema|None data_schema=None, dict[str, str]|None errors=None, Mapping[str, str]|None description_placeholders=None, bool|None last_step=None, str|None preview=None)
_FlowResultT async_show_form(self, *str|None step_id=None, vol.Schema|None data_schema=None, dict[str, str]|None errors=None, Mapping[str, str]|None description_placeholders=None, bool|None last_step=None, str|None preview=None)
_FlowResultT async_create_entry(self, *str|None title=None, Mapping[str, Any] data, str|None description=None, Mapping[str, str]|None description_placeholders=None)