1 """Constants for the swiss_public_transport integration."""
3 from typing
import Final
5 DOMAIN =
"swiss_public_transport"
7 CONF_DESTINATION: Final =
"to"
8 CONF_START: Final =
"from"
9 CONF_VIA: Final =
"via"
10 CONF_TIME_STATION: Final =
"time_station"
11 CONF_TIME_MODE: Final =
"time_mode"
12 CONF_TIME_FIXED: Final =
"time_fixed"
13 CONF_TIME_OFFSET: Final =
"time_offset"
15 DEFAULT_NAME =
"Next Destination"
16 DEFAULT_UPDATE_TIME = 90
17 DEFAULT_TIME_STATION =
"departure"
18 DEFAULT_TIME_MODE =
"now"
23 IS_ARRIVAL_OPTIONS = [
"departure",
"arrival"]
24 TIME_MODE_OPTIONS = [
"now",
"fixed",
"offset"]
28 "stationboard_url":
"http://transport.opendata.ch/examples/stationboard.html",
29 "opendata_url":
"http://transport.opendata.ch",
32 ATTR_CONFIG_ENTRY_ID: Final =
"config_entry_id"
33 ATTR_LIMIT: Final =
"limit"
35 SERVICE_FETCH_CONNECTIONS =
"fetch_connections"