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

Classes

class  CannotConnect
 
class  InvalidAuth
 
class  NoAppliances
 
class  WhirlpoolConfigFlow
 

Functions

dict[str, str] validate_input (HomeAssistant hass, dict[str, str] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 REAUTH_SCHEMA
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for Whirlpool Appliances integration.

Function Documentation

◆ validate_input()

dict[str, str] homeassistant.components.whirlpool.config_flow.validate_input ( HomeAssistant  hass,
dict[str, str]  data 
)
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 43 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 23 of file config_flow.py.

◆ REAUTH_SCHEMA

homeassistant.components.whirlpool.config_flow.REAUTH_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_PASSWORD): str,
4  vol.Required(CONF_BRAND): vol.In(list(CONF_BRANDS_MAP)),
5  }
6 )

Definition at line 35 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.whirlpool.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_USERNAME): str,
4  vol.Required(CONF_PASSWORD): str,
5  vol.Required(CONF_REGION): vol.In(list(CONF_REGIONS_MAP)),
6  vol.Required(CONF_BRAND): vol.In(list(CONF_BRANDS_MAP)),
7  }
8 )

Definition at line 26 of file config_flow.py.