Use core constants for vasttrafik (#46539)
parent
c9df42b69a
commit
1444afbe5a
|
@ -6,7 +6,7 @@ import vasttrafik
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME
|
||||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_DELAY, CONF_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.util import Throttle
|
||||
|
@ -20,7 +20,6 @@ ATTR_LINE = "line"
|
|||
ATTR_TRACK = "track"
|
||||
ATTRIBUTION = "Data provided by Västtrafik"
|
||||
|
||||
CONF_DELAY = "delay"
|
||||
CONF_DEPARTURES = "departures"
|
||||
CONF_FROM = "from"
|
||||
CONF_HEADING = "heading"
|
||||
|
@ -55,7 +54,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the departure sensor."""
|
||||
|
||||
planner = vasttrafik.JournyPlanner(config.get(CONF_KEY), config.get(CONF_SECRET))
|
||||
sensors = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue