Home Assistant Unofficial Reference 2024.12.1
config_flow.py
Go to the documentation of this file.
1 """Config flow for the Hardkernel integration."""
2 
3 from __future__ import annotations
4 
5 from typing import Any
6 
7 from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
8 
9 from .const import DOMAIN
10 
11 
12 class HardkernelConfigFlow(ConfigFlow, domain=DOMAIN):
13  """Handle a config flow for Hardkernel."""
14 
15  VERSION = 1
16 
17  async def async_step_system(
18  self, data: dict[str, Any] | None = None
19  ) -> ConfigFlowResult:
20  """Handle the initial step."""
21  return self.async_create_entryasync_create_entryasync_create_entry(title="Hardkernel", data={})
ConfigFlowResult async_step_system(self, dict[str, Any]|None data=None)
Definition: config_flow.py:19
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)