Move imports to top for litejet (#29481)

This commit is contained in:
springstan 2019-12-05 06:08:22 +01:00 committed by Paulus Schoutsen
parent b829c46e18
commit 5573504508

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)