1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00

Move imports in gc100 component (#27993)

This commit is contained in:
Diefferson Koderer Môro 2019-10-20 18:23:14 -03:00 committed by cgtobi
parent dd4075d495
commit ab2d1ee134

View File

@ -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]