Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.system_bridge.config_flow Namespace Reference

Classes

class  CannotConnect
 
class  InvalidAuth
 
class  SystemBridgeConfigFlow
 

Functions

tuple[dict[str, str], dict[str, str]|None] _async_get_info (HomeAssistant hass, dict[str, Any] user_input)
 
dict[str, str] _validate_input (HomeAssistant hass, dict[str, Any] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 STEP_AUTHENTICATE_DATA_SCHEMA = vol.Schema({vol.Required(CONF_TOKEN): cv.string})
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for System Bridge integration.

Function Documentation

◆ _async_get_info()

tuple[dict[str, str], dict[str, str] | None] homeassistant.components.system_bridge.config_flow._async_get_info ( HomeAssistant  hass,
dict[str, Any]  user_input 
)
private

Definition at line 93 of file config_flow.py.

◆ _validate_input()

dict[str, str] homeassistant.components.system_bridge.config_flow._validate_input ( HomeAssistant  hass,
dict[str, Any]  data 
)
private
Validate the user input allows us to connect.

Data has the keys from STEP_USER_DATA_SCHEMA with values provided by the user.

Definition at line 41 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.system_bridge.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 29 of file config_flow.py.

◆ STEP_AUTHENTICATE_DATA_SCHEMA

homeassistant.components.system_bridge.config_flow.STEP_AUTHENTICATE_DATA_SCHEMA = vol.Schema({vol.Required(CONF_TOKEN): cv.string})

Definition at line 31 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.system_bridge.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_PORT, default=9170): cv.string,
5  vol.Required(CONF_TOKEN): cv.string,
6  }
7 )

Definition at line 32 of file config_flow.py.