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

Classes

class  GoogleOptionsFlow
 
class  GoogleTravelTimeConfigFlow
 

Functions

dict[str, str] default_options (HomeAssistant hass)
 
dict[str, str]|None validate_input (HomeAssistant hass, dict[str, Any] user_input)
 

Variables

 CONFIG_SCHEMA
 
 OPTIONS_SCHEMA
 
 RECONFIGURE_SCHEMA
 

Detailed Description

Config flow for Google Maps Travel Time integration.

Function Documentation

◆ default_options()

dict[str, str] homeassistant.components.google_travel_time.config_flow.default_options ( HomeAssistant  hass)
Get the default options.

Definition at line 138 of file config_flow.py.

◆ validate_input()

dict[str, str] | None homeassistant.components.google_travel_time.config_flow.validate_input ( HomeAssistant  hass,
dict[str, Any]   user_input 
)
Validate the user input allows us to connect.

Definition at line 179 of file config_flow.py.

Variable Documentation

◆ CONFIG_SCHEMA

homeassistant.components.google_travel_time.config_flow.CONFIG_SCHEMA
Initial value:
1 = RECONFIGURE_SCHEMA.extend(
2  {
3  vol.Required(CONF_NAME, default=DEFAULT_NAME): cv.string,
4  }
5 )

Definition at line 62 of file config_flow.py.

◆ OPTIONS_SCHEMA

homeassistant.components.google_travel_time.config_flow.OPTIONS_SCHEMA

Definition at line 68 of file config_flow.py.

◆ RECONFIGURE_SCHEMA

homeassistant.components.google_travel_time.config_flow.RECONFIGURE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_API_KEY): cv.string,
4  vol.Required(CONF_DESTINATION): cv.string,
5  vol.Required(CONF_ORIGIN): cv.string,
6  }
7 )

Definition at line 54 of file config_flow.py.