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

Variables

int CONNECTIONS_COUNT = 3
 
int CONNECTIONS_MAX = 15
 
string DEFAULT_NAME = "Next Destination"
 
string DEFAULT_TIME_MODE = "now"
 
string DEFAULT_TIME_STATION = "departure"
 
int DEFAULT_UPDATE_TIME = 90
 
string DOMAIN = "swiss_public_transport"
 
 Final
 
list IS_ARRIVAL_OPTIONS = ["departure", "arrival"]
 
int MAX_VIA = 5
 
dictionary PLACEHOLDERS
 
string SERVICE_FETCH_CONNECTIONS = "fetch_connections"
 
list TIME_MODE_OPTIONS = ["now", "fixed", "offset"]
 

Detailed Description

Constants for the swiss_public_transport integration.

Variable Documentation

◆ CONNECTIONS_COUNT

int homeassistant.components.swiss_public_transport.const.CONNECTIONS_COUNT = 3

Definition at line 21 of file const.py.

◆ CONNECTIONS_MAX

int homeassistant.components.swiss_public_transport.const.CONNECTIONS_MAX = 15

Definition at line 22 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.swiss_public_transport.const.DEFAULT_NAME = "Next Destination"

Definition at line 15 of file const.py.

◆ DEFAULT_TIME_MODE

string homeassistant.components.swiss_public_transport.const.DEFAULT_TIME_MODE = "now"

Definition at line 18 of file const.py.

◆ DEFAULT_TIME_STATION

string homeassistant.components.swiss_public_transport.const.DEFAULT_TIME_STATION = "departure"

Definition at line 17 of file const.py.

◆ DEFAULT_UPDATE_TIME

int homeassistant.components.swiss_public_transport.const.DEFAULT_UPDATE_TIME = 90

Definition at line 16 of file const.py.

◆ DOMAIN

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

Definition at line 5 of file const.py.

◆ Final

homeassistant.components.swiss_public_transport.const.Final

Definition at line 7 of file const.py.

◆ IS_ARRIVAL_OPTIONS

list homeassistant.components.swiss_public_transport.const.IS_ARRIVAL_OPTIONS = ["departure", "arrival"]

Definition at line 23 of file const.py.

◆ MAX_VIA

int homeassistant.components.swiss_public_transport.const.MAX_VIA = 5

Definition at line 20 of file const.py.

◆ PLACEHOLDERS

dictionary homeassistant.components.swiss_public_transport.const.PLACEHOLDERS
Initial value:
1 = {
2  "stationboard_url": "http://transport.opendata.ch/examples/stationboard.html",
3  "opendata_url": "http://transport.opendata.ch",
4 }

Definition at line 27 of file const.py.

◆ SERVICE_FETCH_CONNECTIONS

string homeassistant.components.swiss_public_transport.const.SERVICE_FETCH_CONNECTIONS = "fetch_connections"

Definition at line 35 of file const.py.

◆ TIME_MODE_OPTIONS

list homeassistant.components.swiss_public_transport.const.TIME_MODE_OPTIONS = ["now", "fixed", "offset"]

Definition at line 24 of file const.py.