mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Move imports in mvglive component (#28031)
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user