mirror of
https://github.com/home-assistant/core
synced 2024-07-12 07:21:24 +02:00
Move imports to top for nederlandse_spoorwegen (#29360)
This commit is contained in:
parent
c9c41260b2
commit
4989d1e7a9
@ -2,6 +2,7 @@
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
|
||||
import ns_api
|
||||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
@ -46,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the departure sensor."""
|
||||
import ns_api
|
||||
|
||||
nsapi = ns_api.NSAPI(config.get(CONF_EMAIL), config.get(CONF_PASSWORD))
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user