mirror of
https://github.com/home-assistant/core
synced 2024-09-12 15:16:21 +02:00
Move imports to top for nmbs (#29365)
This commit is contained in:
parent
564c468c26
commit
3ddd20159c
@ -1,6 +1,7 @@
|
||||
"""Get ride details and liveboard details for NMBS (Belgian railway)."""
|
||||
import logging
|
||||
|
||||
from pyrail import iRail
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
@ -64,7 +65,6 @@ def get_ride_duration(departure_time, arrival_time, delay=0):
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the NMBS sensor with iRail API."""
|
||||
from pyrail import iRail
|
||||
|
||||
api_client = iRail()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user