User core constants for deutsche_bahn ()

pull/46061/head^2
tkdrob 2021-02-05 04:29:59 -05:00 committed by GitHub
parent 6e9aa254d5
commit 2b17ba1dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
homeassistant/components/deutsche_bahn

View File

@ -5,13 +5,13 @@ import schiene
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_OFFSET
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
import homeassistant.util.dt as dt_util
CONF_DESTINATION = "to"
CONF_START = "from"
CONF_OFFSET = "offset"
DEFAULT_OFFSET = timedelta(minutes=0)
CONF_ONLY_DIRECT = "only_direct"
DEFAULT_ONLY_DIRECT = False
@ -87,7 +87,6 @@ class SchieneData:
def __init__(self, start, goal, offset, only_direct):
"""Initialize the sensor."""
self.start = start
self.goal = goal
self.offset = offset