Move imports to top for spider (#29249)

This commit is contained in:
springstan authored and Paulus Schoutsen committed 2019-11-30 21:23:48 -08:00
1 parent 9fbb345ce0
commit 6726c4c76b
1 file changed
+1 -2
+1 -2
View File
@@ -2,6 +2,7 @@
from datetime import timedelta
import logging
from spiderpy.spiderapi import SpiderApi, UnauthorizedException
import voluptuous as vol
from homeassistant.const import CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF_USERNAME
@@ -32,8 +33,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config):
"""Set up Spider Component."""
from spiderpy.spiderapi import SpiderApi
from spiderpy.spiderapi import UnauthorizedException
username = config[DOMAIN][CONF_USERNAME]
password = config[DOMAIN][CONF_PASSWORD]