Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Adds constants for Trafikverket Train integration."""
2 
3 from homeassistant.const import Platform
4 
5 DOMAIN = "trafikverket_train"
6 PLATFORMS = [Platform.SENSOR]
7 ATTRIBUTION = "Data provided by Trafikverket"
8 
9 CONF_FROM = "from"
10 CONF_TO = "to"
11 CONF_TIME = "time"
12 CONF_FILTER_PRODUCT = "filter_product"