Home Assistant Unofficial Reference 2024.12.1
config_flow.py
Go to the documentation of this file.
1 """Config flow for AWS component."""
2 
3 from typing import Any
4 
5 from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
6 
7 from .const import DOMAIN
8 
9 
10 class AWSFlowHandler(ConfigFlow, domain=DOMAIN):
11  """Handle a config flow."""
12 
13  VERSION = 1
14 
15  async def async_step_import(self, import_data: dict[str, Any]) -> ConfigFlowResult:
16  """Import a config entry."""
17  return self.async_create_entryasync_create_entryasync_create_entry(title="configuration.yaml", data=import_data)
ConfigFlowResult async_step_import(self, dict[str, Any] import_data)
Definition: config_flow.py:15
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)
_FlowResultT async_create_entry(self, *str|None title=None, Mapping[str, Any] data, str|None description=None, Mapping[str, str]|None description_placeholders=None)