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

Classes

class  CannotConnect
 
class  WS66iConfigFlow
 
class  Ws66iOptionsFlowHandler
 

Functions

vol.Required _key_for_source (int index, str source, dict[str, str] previous_sources)
 
dict[str, str] _sources_from_config (dict[str, str] data)
 
bool _verify_connection (WS66i ws66i)
 
dict[str, Any] validate_input (HomeAssistant hass, dict[str, Any] input_data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 DATA_SCHEMA = vol.Schema({vol.Required(CONF_IP_ADDRESS): str})
 
int FIRST_ZONE = 11
 
dictionary OPTIONS_SCHEMA = {vol.Optional(source): str for source in SOURCES}
 
list SOURCES
 

Detailed Description

Config flow for WS66i 6-Zone Amplifier integration.

Function Documentation

◆ _key_for_source()

vol.Required homeassistant.components.ws66i.config_flow._key_for_source ( int  index,
str  source,
dict[str, str]   previous_sources 
)
private

Definition at line 137 of file config_flow.py.

◆ _sources_from_config()

dict[str, str] homeassistant.components.ws66i.config_flow._sources_from_config ( dict[str, str]  data)
private

Definition at line 52 of file config_flow.py.

◆ _verify_connection()

bool homeassistant.components.ws66i.config_flow._verify_connection ( WS66i  ws66i)
private
Verify a connection can be made to the WS66i.

Definition at line 64 of file config_flow.py.

◆ validate_input()

dict[str, Any] homeassistant.components.ws66i.config_flow.validate_input ( HomeAssistant  hass,
dict[str, Any]   input_data 
)
Validate the user input.

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

Definition at line 80 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 33 of file config_flow.py.

◆ DATA_SCHEMA

homeassistant.components.ws66i.config_flow.DATA_SCHEMA = vol.Schema({vol.Required(CONF_IP_ADDRESS): str})

Definition at line 46 of file config_flow.py.

◆ FIRST_ZONE

int homeassistant.components.ws66i.config_flow.FIRST_ZONE = 11

Definition at line 48 of file config_flow.py.

◆ OPTIONS_SCHEMA

dictionary homeassistant.components.ws66i.config_flow.OPTIONS_SCHEMA = {vol.Optional(source): str for source in SOURCES}

Definition at line 44 of file config_flow.py.

◆ SOURCES

list homeassistant.components.ws66i.config_flow.SOURCES
Initial value:
1 = [
2  CONF_SOURCE_1,
3  CONF_SOURCE_2,
4  CONF_SOURCE_3,
5  CONF_SOURCE_4,
6  CONF_SOURCE_5,
7  CONF_SOURCE_6,
8 ]

Definition at line 35 of file config_flow.py.