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

Variables

list ALL_LANGUAGES
 
string ARRIVAL_TIME = "Arrival Time"
 
string ATTRIBUTION = "Powered by Google"
 
list AVOID_OPTIONS = ["tolls", "highways", "ferries", "indoor"]
 
string CONF_ARRIVAL_TIME = "arrival_time"
 
string CONF_AVOID = "avoid"
 
string CONF_DEPARTURE_TIME = "departure_time"
 
string CONF_DESTINATION = "destination"
 
string CONF_OPTIONS = "options"
 
string CONF_ORIGIN = "origin"
 
string CONF_TIME = "time"
 
string CONF_TIME_TYPE = "time_type"
 
string CONF_TRAFFIC_MODEL = "traffic_model"
 
string CONF_TRANSIT_MODE = "transit_mode"
 
string CONF_TRANSIT_ROUTING_PREFERENCE = "transit_routing_preference"
 
string CONF_TRAVEL_MODE = "travel_mode"
 
string CONF_UNITS = "units"
 
string DEFAULT_NAME = "Google Travel Time"
 
string DEPARTURE_TIME = "Departure Time"
 
string DOMAIN = "google_travel_time"
 
list TIME_TYPES = [ARRIVAL_TIME, DEPARTURE_TIME]
 
list TRAFFIC_MODELS = ["best_guess", "pessimistic", "optimistic"]
 
list TRANSIT_PREFS = ["less_walking", "fewer_transfers"]
 
list TRANSPORT_TYPES = ["bus", "subway", "train", "tram", "rail"]
 
list TRAVEL_MODES = ["driving", "walking", "bicycling", "transit"]
 
list UNITS = [UNITS_METRIC, UNITS_IMPERIAL]
 
string UNITS_IMPERIAL = "imperial"
 
string UNITS_METRIC = "metric"
 

Detailed Description

Constants for Google Travel Time.

Variable Documentation

◆ ALL_LANGUAGES

list homeassistant.components.google_travel_time.const.ALL_LANGUAGES

Definition at line 27 of file const.py.

◆ ARRIVAL_TIME

string homeassistant.components.google_travel_time.const.ARRIVAL_TIME = "Arrival Time"

Definition at line 21 of file const.py.

◆ ATTRIBUTION

string homeassistant.components.google_travel_time.const.ATTRIBUTION = "Powered by Google"

Definition at line 5 of file const.py.

◆ AVOID_OPTIONS

list homeassistant.components.google_travel_time.const.AVOID_OPTIONS = ["tolls", "highways", "ferries", "indoor"]

Definition at line 80 of file const.py.

◆ CONF_ARRIVAL_TIME

string homeassistant.components.google_travel_time.const.CONF_ARRIVAL_TIME = "arrival_time"

Definition at line 13 of file const.py.

◆ CONF_AVOID

string homeassistant.components.google_travel_time.const.CONF_AVOID = "avoid"

Definition at line 11 of file const.py.

◆ CONF_DEPARTURE_TIME

string homeassistant.components.google_travel_time.const.CONF_DEPARTURE_TIME = "departure_time"

Definition at line 14 of file const.py.

◆ CONF_DESTINATION

string homeassistant.components.google_travel_time.const.CONF_DESTINATION = "destination"

Definition at line 7 of file const.py.

◆ CONF_OPTIONS

string homeassistant.components.google_travel_time.const.CONF_OPTIONS = "options"

Definition at line 8 of file const.py.

◆ CONF_ORIGIN

string homeassistant.components.google_travel_time.const.CONF_ORIGIN = "origin"

Definition at line 9 of file const.py.

◆ CONF_TIME

string homeassistant.components.google_travel_time.const.CONF_TIME = "time"

Definition at line 19 of file const.py.

◆ CONF_TIME_TYPE

string homeassistant.components.google_travel_time.const.CONF_TIME_TYPE = "time_type"

Definition at line 18 of file const.py.

◆ CONF_TRAFFIC_MODEL

string homeassistant.components.google_travel_time.const.CONF_TRAFFIC_MODEL = "traffic_model"

Definition at line 15 of file const.py.

◆ CONF_TRANSIT_MODE

string homeassistant.components.google_travel_time.const.CONF_TRANSIT_MODE = "transit_mode"

Definition at line 16 of file const.py.

◆ CONF_TRANSIT_ROUTING_PREFERENCE

string homeassistant.components.google_travel_time.const.CONF_TRANSIT_ROUTING_PREFERENCE = "transit_routing_preference"

Definition at line 17 of file const.py.

◆ CONF_TRAVEL_MODE

string homeassistant.components.google_travel_time.const.CONF_TRAVEL_MODE = "travel_mode"

Definition at line 10 of file const.py.

◆ CONF_UNITS

string homeassistant.components.google_travel_time.const.CONF_UNITS = "units"

Definition at line 12 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.google_travel_time.const.DEFAULT_NAME = "Google Travel Time"

Definition at line 25 of file const.py.

◆ DEPARTURE_TIME

string homeassistant.components.google_travel_time.const.DEPARTURE_TIME = "Departure Time"

Definition at line 22 of file const.py.

◆ DOMAIN

string homeassistant.components.google_travel_time.const.DOMAIN = "google_travel_time"

Definition at line 3 of file const.py.

◆ TIME_TYPES

list homeassistant.components.google_travel_time.const.TIME_TYPES = [ARRIVAL_TIME, DEPARTURE_TIME]

Definition at line 23 of file const.py.

◆ TRAFFIC_MODELS

list homeassistant.components.google_travel_time.const.TRAFFIC_MODELS = ["best_guess", "pessimistic", "optimistic"]

Definition at line 84 of file const.py.

◆ TRANSIT_PREFS

list homeassistant.components.google_travel_time.const.TRANSIT_PREFS = ["less_walking", "fewer_transfers"]

Definition at line 81 of file const.py.

◆ TRANSPORT_TYPES

list homeassistant.components.google_travel_time.const.TRANSPORT_TYPES = ["bus", "subway", "train", "tram", "rail"]

Definition at line 82 of file const.py.

◆ TRAVEL_MODES

list homeassistant.components.google_travel_time.const.TRAVEL_MODES = ["driving", "walking", "bicycling", "transit"]

Definition at line 83 of file const.py.

◆ UNITS

list homeassistant.components.google_travel_time.const.UNITS = [UNITS_METRIC, UNITS_IMPERIAL]

Definition at line 89 of file const.py.

◆ UNITS_IMPERIAL

string homeassistant.components.google_travel_time.const.UNITS_IMPERIAL = "imperial"

Definition at line 88 of file const.py.

◆ UNITS_METRIC

string homeassistant.components.google_travel_time.const.UNITS_METRIC = "metric"

Definition at line 87 of file const.py.