From 930182a7cbcfa3b240a84fd73137b8b694ea6a6f Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Sun, 13 Oct 2019 14:54:38 +0200 Subject: [PATCH] Move import in deutsche_bahn integration (#27579) * Moved import in deutsche_bahn integration * Moved import schiene before PLATFORM_SCHEMA --- homeassistant/components/deutsche_bahn/sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/deutsche_bahn/sensor.py b/homeassistant/components/deutsche_bahn/sensor.py index fbe0efa15ac..ad7b40f78db 100644 --- a/homeassistant/components/deutsche_bahn/sensor.py +++ b/homeassistant/components/deutsche_bahn/sensor.py @@ -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 -- GitLab