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

Classes

class  RiscoConfigFlow
 
class  RiscoOptionsFlowHandler
 

Functions

dict[str, str] validate_cloud_input (HomeAssistant hass, dict[str, Any] data)
 
dict[str, Any] validate_local_input (HomeAssistant hass, Mapping[str, str] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CLOUD_SCHEMA
 
list HA_STATES
 
 LOCAL_SCHEMA
 

Detailed Description

Config flow for Risco integration.

Function Documentation

◆ validate_cloud_input()

dict[str, str] homeassistant.components.risco.config_flow.validate_cloud_input ( HomeAssistant  hass,
dict[str, Any]   data 
)
Validate the user input allows us to connect to Risco Cloud.

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

Definition at line 71 of file config_flow.py.

◆ validate_local_input()

dict[str, Any] homeassistant.components.risco.config_flow.validate_local_input ( HomeAssistant  hass,
Mapping[str, str]   data 
)
Validate the user input allows us to connect to a local panel.

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

Definition at line 88 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 46 of file config_flow.py.

◆ CLOUD_SCHEMA

homeassistant.components.risco.config_flow.CLOUD_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_USERNAME): str,
4  vol.Required(CONF_PASSWORD): str,
5  vol.Required(CONF_PIN): str,
6  }
7 )

Definition at line 49 of file config_flow.py.

◆ HA_STATES

list homeassistant.components.risco.config_flow.HA_STATES
Initial value:
1 = [
2  AlarmControlPanelState.ARMED_AWAY.value,
3  AlarmControlPanelState.ARMED_HOME.value,
4  AlarmControlPanelState.ARMED_NIGHT.value,
5  AlarmControlPanelState.ARMED_CUSTOM_BYPASS.value,
6 ]

Definition at line 63 of file config_flow.py.

◆ LOCAL_SCHEMA

homeassistant.components.risco.config_flow.LOCAL_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST): str,
4  vol.Required(CONF_PORT, default=1000): int,
5  vol.Required(CONF_PIN): str,
6  }
7 )

Definition at line 56 of file config_flow.py.