Move imports to top for nx584 (#29537)

This commit is contained in:
springstan authored and Franck Nijhof committed 2019-12-06 09:08:54 +01:00
1 parent e2a9c652ab
commit 0aace1da55
2 files changed
+3 -3

No files matched your search

@@ -3,13 +3,14 @@ import logging
import threading
import time
from nx584 import client as nx584_client
import requests
import voluptuous as vol
from homeassistant.components.binary_sensor import (
DEVICE_CLASSES,
BinarySensorDevice,
PLATFORM_SCHEMA,
BinarySensorDevice,
)
from homeassistant.const import CONF_HOST, CONF_PORT
import homeassistant.helpers.config_validation as cv
@@ -39,7 +40,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the NX584 binary sensor platform."""
from nx584 import client as nx584_client
host = config.get(CONF_HOST)
port = config.get(CONF_PORT)