mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Move imports in gc100 component (#27993)
This commit is contained in:
parent
dd4075d495
commit
ab2d1ee134
@ -1,9 +1,10 @@
|
|||||||
"""Support for controlling Global Cache gc100."""
|
"""Support for controlling Global Cache gc100."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import gc100
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT
|
from homeassistant.const import CONF_HOST, CONF_PORT, EVENT_HOMEASSISTANT_STOP
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@ -31,8 +32,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
# pylint: disable=no-member
|
# pylint: disable=no-member
|
||||||
def setup(hass, base_config):
|
def setup(hass, base_config):
|
||||||
"""Set up the gc100 component."""
|
"""Set up the gc100 component."""
|
||||||
import gc100
|
|
||||||
|
|
||||||
config = base_config[DOMAIN]
|
config = base_config[DOMAIN]
|
||||||
host = config[CONF_HOST]
|
host = config[CONF_HOST]
|
||||||
port = config[CONF_PORT]
|
port = config[CONF_PORT]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user