forked from home-assistant/core
Move imports in mvglive component (#28031)
This commit is contained in:
committed by
Fabian Affolter
parent
ad39b957d6
commit
1e27e2827d
@@ -1,14 +1,15 @@
|
||||
"""Support for departure information for public transport in Munich."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
|
||||
from copy import deepcopy
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import MVGLive
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_NAME, ATTR_ATTRIBUTION
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -150,8 +151,6 @@ class MVGLiveData:
|
||||
self, station, destinations, directions, lines, products, timeoffset, number
|
||||
):
|
||||
"""Initialize the sensor."""
|
||||
import MVGLive
|
||||
|
||||
self._station = station
|
||||
self._destinations = destinations
|
||||
self._directions = directions
|
||||
|
||||
Reference in New Issue
Block a user