mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Move import in deutsche_bahn integration (#27579)
* Moved import in deutsche_bahn integration * Moved import schiene before PLATFORM_SCHEMA
This commit is contained in:
parent
bbafeb5da2
commit
930182a7cb
@ -4,6 +4,8 @@ import logging
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
import schiene
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@ -89,7 +91,6 @@ class SchieneData:
|
||||
|
||||
def __init__(self, start, goal, offset, only_direct):
|
||||
"""Initialize the sensor."""
|
||||
import schiene
|
||||
|
||||
self.start = start
|
||||
self.goal = goal
|
||||
|
Loading…
x
Reference in New Issue
Block a user