mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Move imports in juicenet component (#28006)
This commit is contained in:
parent
9fa99eaea9
commit
1a68591fe6
@ -1,12 +1,13 @@
|
|||||||
"""Support for Juicenet cloud."""
|
"""Support for Juicenet cloud."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import pyjuicenet
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.helpers import discovery
|
|
||||||
from homeassistant.const import CONF_ACCESS_TOKEN
|
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
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -20,8 +21,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the Juicenet component."""
|
"""Set up the Juicenet component."""
|
||||||
import pyjuicenet
|
|
||||||
|
|
||||||
hass.data[DOMAIN] = {}
|
hass.data[DOMAIN] = {}
|
||||||
|
|
||||||
access_token = config[DOMAIN].get(CONF_ACCESS_TOKEN)
|
access_token = config[DOMAIN].get(CONF_ACCESS_TOKEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user