Skip to content
Snippets Groups Projects
Commit 930182a7 authored by springstan's avatar springstan Committed by Martin Hjelmare
Browse files

Move import in deutsche_bahn integration (#27579)

* Moved import in deutsche_bahn integration

* Moved import schiene before PLATFORM_SCHEMA
parent bbafeb5d
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ import logging ...@@ -4,6 +4,8 @@ import logging
import voluptuous as vol import voluptuous as vol
import schiene
from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.components.sensor import PLATFORM_SCHEMA
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
...@@ -89,7 +91,6 @@ class SchieneData: ...@@ -89,7 +91,6 @@ class SchieneData:
def __init__(self, start, goal, offset, only_direct): def __init__(self, start, goal, offset, only_direct):
"""Initialize the sensor.""" """Initialize the sensor."""
import schiene
self.start = start self.start = start
self.goal = goal self.goal = goal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment