Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.waze_travel_time Namespace Reference

Namespaces

 config_flow
 
 const
 
 helpers
 
 sensor
 

Functions

list[CalcRoutesResponse]|None async_get_travel_times (WazeRouteCalculator client, str origin, str destination, str vehicle_type, bool avoid_toll_roads, bool avoid_subscription_roads, bool avoid_ferries, bool realtime, Collection[str]|None incl_filters=None, Collection[str]|None excl_filters=None)
 
bool async_migrate_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry config_entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list PLATFORMS = [Platform.SENSOR]
 
string SERVICE_GET_TRAVEL_TIMES = "get_travel_times"
 
 SERVICE_GET_TRAVEL_TIMES_SCHEMA
 

Detailed Description

The waze_travel_time component.

Function Documentation

◆ async_get_travel_times()

list[CalcRoutesResponse] | None homeassistant.components.waze_travel_time.async_get_travel_times ( WazeRouteCalculator  client,
str  origin,
str  destination,
str  vehicle_type,
bool  avoid_toll_roads,
bool  avoid_subscription_roads,
bool  avoid_ferries,
bool  realtime,
Collection[str] | None   incl_filters = None,
Collection[str] | None   excl_filters = None 
)
Get all available routes.

Definition at line 123 of file __init__.py.

◆ async_migrate_entry()

bool homeassistant.components.waze_travel_time.async_migrate_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Migrate an old config entry.

Definition at line 213 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.waze_travel_time.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Load the saved entities.

Definition at line 89 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.waze_travel_time.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Unload a config entry.

Definition at line 208 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.waze_travel_time._LOGGER = logging.getLogger(__name__)
private

Definition at line 86 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.waze_travel_time.PLATFORMS = [Platform.SENSOR]

Definition at line 48 of file __init__.py.

◆ SERVICE_GET_TRAVEL_TIMES

string homeassistant.components.waze_travel_time.SERVICE_GET_TRAVEL_TIMES = "get_travel_times"

Definition at line 50 of file __init__.py.

◆ SERVICE_GET_TRAVEL_TIMES_SCHEMA

homeassistant.components.waze_travel_time.SERVICE_GET_TRAVEL_TIMES_SCHEMA

Definition at line 51 of file __init__.py.