Move imports in gc100 component (#27993)
This commit is contained in:
parent
dd4075d495
commit
ab2d1ee134
1 changed files with 2 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
|||
"""Support for controlling Global Cache gc100."""
|
||||
import logging
|
||||
|
||||
import gc100
|
||||
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
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -31,8 +32,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
# pylint: disable=no-member
|
||||
def setup(hass, base_config):
|
||||
"""Set up the gc100 component."""
|
||||
import gc100
|
||||
|
||||
config = base_config[DOMAIN]
|
||||
host = config[CONF_HOST]
|
||||
port = config[CONF_PORT]
|
||||
|
|
Loading…
Add table
Reference in a new issue