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

Classes

class  BMWConfigFlow
 
class  BMWOptionsFlow
 
class  CannotConnect
 
class  InvalidAuth
 
class  MissingCaptcha
 

Functions

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

Variables

 CAPTCHA_SCHEMA
 
 DATA_SCHEMA
 

Detailed Description

Config flow for BMW ConnectedDrive integration.

Function Documentation

◆ validate_input()

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

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

Definition at line 64 of file config_flow.py.

Variable Documentation

◆ CAPTCHA_SCHEMA

homeassistant.components.bmw_connected_drive.config_flow.CAPTCHA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_CAPTCHA_TOKEN): str,
4  },
5  extra=vol.REMOVE_EXTRA,
6 )

Definition at line 56 of file config_flow.py.

◆ DATA_SCHEMA

homeassistant.components.bmw_connected_drive.config_flow.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): SelectSelector(
6  SelectSelectorConfig(
7  options=CONF_ALLOWED_REGIONS,
8  translation_key="regions",
9  )
10  ),
11  },
12  extra=vol.REMOVE_EXTRA,
13 )

Definition at line 43 of file config_flow.py.