Skip to content

Commit

Permalink
Move imports to top for entur_public_transport (#29459)
Browse files Browse the repository at this point in the history
  • Loading branch information
springstan authored and balloob committed Dec 5, 2019
1 parent 24878f1 commit a4ac5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/entur_public_transport/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a4ac5dc

Please sign in to comment.