mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Move imports to top for entur_public_transport (#29459)
This commit is contained in:
parent
24878f109c
commit
a4ac5dc6b8
@ -2,6 +2,7 @@
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
|
||||
from enturclient import EnturPublicTransportData
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
@ -87,7 +88,6 @@ def due_in_minutes(timestamp: datetime) -> int:
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||
"""Set up the Entur public transport sensor."""
|
||||
from enturclient import EnturPublicTransportData
|
||||
|
||||
expand = config.get(CONF_EXPAND_PLATFORMS)
|
||||
line_whitelist = config.get(CONF_WHITELIST_LINES)
|
||||
|
Loading…
x
Reference in New Issue
Block a user