Move imports in mvglive component (#28031)

This commit is contained in:
Diefferson Koderer Môro 2019-10-21 04:53:28 -03:00 committed by Fabian Affolter
parent ad39b957d6
commit 1e27e2827d

View File

@ -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