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

Classes

class  BondConfigFlow
 
class  InputValidationError
 

Functions

tuple[str, str] _validate_input (HomeAssistant hass, dict[str, Any] data)
 
str|None async_get_token (HomeAssistant hass, str host)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 DISCOVERY_SCHEMA = vol.Schema({vol.Required(CONF_ACCESS_TOKEN): str})
 
 TOKEN_SCHEMA = vol.Schema({})
 
 USER_SCHEMA
 

Detailed Description

Config flow for Bond integration.

Function Documentation

◆ _validate_input()

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

Definition at line 43 of file config_flow.py.

◆ async_get_token()

str | None homeassistant.components.bond.config_flow.async_get_token ( HomeAssistant  hass,
str  host 
)
Try to fetch the token from the bond device.

Definition at line 34 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 24 of file config_flow.py.

◆ DISCOVERY_SCHEMA

homeassistant.components.bond.config_flow.DISCOVERY_SCHEMA = vol.Schema({vol.Required(CONF_ACCESS_TOKEN): str})

Definition at line 30 of file config_flow.py.

◆ TOKEN_SCHEMA

homeassistant.components.bond.config_flow.TOKEN_SCHEMA = vol.Schema({})

Definition at line 31 of file config_flow.py.

◆ USER_SCHEMA

homeassistant.components.bond.config_flow.USER_SCHEMA
Initial value:
1 = vol.Schema(
2  {vol.Required(CONF_HOST): str, vol.Required(CONF_ACCESS_TOKEN): str}
3 )

Definition at line 27 of file config_flow.py.