Move imports in rejseplanen component (#28091)
parent
3e8f2bf2fc
commit
40fbfe7a93
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue