Move imports in rejseplanen component (#28091)

pull/28103/head
Diefferson Koderer Môro 2019-10-22 05:35:05 +00:00 committed by Paulus Schoutsen
parent 3e8f2bf2fc
commit 40fbfe7a93
1 changed files with 5 additions and 6 deletions

View File

@ -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 For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.rejseplanen/ https://home-assistant.io/components/sensor.rejseplanen/
""" """
from datetime import datetime, timedelta
import logging import logging
from datetime import timedelta, datetime
from operator import itemgetter from operator import itemgetter
import rjpl
import voluptuous as vol 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.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 from homeassistant.helpers.entity import Entity
import homeassistant.util.dt as dt_util
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -166,8 +167,6 @@ class PublicTransportData:
def update(self): def update(self):
"""Get the latest data from rejseplanen.""" """Get the latest data from rejseplanen."""
import rjpl
self.info = [] self.info = []
def intersection(lst1, lst2): def intersection(lst1, lst2):