From 1a68591fe6d7398fb1d33ebcb35a4b40a9fe1346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diefferson=20Koderer=20M=C3=B4ro?= Date: Mon, 21 Oct 2019 05:22:13 -0300 Subject: [PATCH] Move imports in juicenet component (#28006) --- homeassistant/components/juicenet/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/juicenet/__init__.py b/homeassistant/components/juicenet/__init__.py index a176236b224..207dac7836a 100644 --- a/homeassistant/components/juicenet/__init__.py +++ b/homeassistant/components/juicenet/__init__.py @@ -1,12 +1,13 @@ """Support for Juicenet cloud.""" import logging +import pyjuicenet import voluptuous as vol -from homeassistant.helpers import discovery from homeassistant.const import CONF_ACCESS_TOKEN -from homeassistant.helpers.entity import Entity +from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv +from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) @@ -20,8 +21,6 @@ CONFIG_SCHEMA = vol.Schema( def setup(hass, config): """Set up the Juicenet component.""" - import pyjuicenet - hass.data[DOMAIN] = {} access_token = config[DOMAIN].get(CONF_ACCESS_TOKEN)