Move imports to top for litejet (#29481)

This commit is contained in:
springstan authored and Paulus Schoutsen committed 2019-12-04 21:08:22 -08:00
1 parent b829c46e18
commit 5573504508
1 file changed
+3 -3
+3 -3
View File
@@ -1,11 +1,12 @@
"""Support for the LiteJet lighting system."""
import logging
from pylitejet import LiteJet
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers import discovery
from homeassistant.const import CONF_PORT
from homeassistant.helpers import discovery
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
@@ -30,7 +31,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config):
"""Set up the LiteJet component."""
from pylitejet import LiteJet
url = config[DOMAIN].get(CONF_PORT)