From 40fbfe7a93c712d0ab0be97dc896982ef61e989a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diefferson=20Koderer=20M=C3=B4ro?= Date: Tue, 22 Oct 2019 05:35:05 +0000 Subject: [PATCH] Move imports in rejseplanen component (#28091) --- homeassistant/components/rejseplanen/sensor.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/rejseplanen/sensor.py b/homeassistant/components/rejseplanen/sensor.py index 61cb319fd11..b7d36010714 100644 --- a/homeassistant/components/rejseplanen/sensor.py +++ b/homeassistant/components/rejseplanen/sensor.py @@ -7,17 +7,18 @@ https://help.rejseplanen.dk/hc/en-us/articles/214174465-Rejseplanen-s-API For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.rejseplanen/ """ +from datetime import datetime, timedelta import logging -from datetime import timedelta, datetime from operator import itemgetter +import rjpl import voluptuous as vol -import homeassistant.helpers.config_validation as cv -import homeassistant.util.dt as dt_util from homeassistant.components.sensor import PLATFORM_SCHEMA -from homeassistant.const import CONF_NAME, ATTR_ATTRIBUTION +from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME +import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity +import homeassistant.util.dt as dt_util _LOGGER = logging.getLogger(__name__) @@ -166,8 +167,6 @@ class PublicTransportData: def update(self): """Get the latest data from rejseplanen.""" - import rjpl - self.info = [] def intersection(lst1, lst2):