mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports to top for gogogate2 (#29411)
* Move imports to top for gogogate2 * Isorted imports
This commit is contained in:
parent
6c45c1969b
commit
c159ad52a4
@ -1,15 +1,16 @@
|
||||
"""Support for Gogogate2 garage Doors."""
|
||||
import logging
|
||||
|
||||
from pygogogate2 import Gogogate2API as pygogogate2
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.cover import CoverDevice, SUPPORT_OPEN, SUPPORT_CLOSE
|
||||
from homeassistant.components.cover import SUPPORT_CLOSE, SUPPORT_OPEN, CoverDevice
|
||||
from homeassistant.const import (
|
||||
CONF_USERNAME,
|
||||
CONF_PASSWORD,
|
||||
STATE_CLOSED,
|
||||
CONF_IP_ADDRESS,
|
||||
CONF_NAME,
|
||||
CONF_PASSWORD,
|
||||
CONF_USERNAME,
|
||||
STATE_CLOSED,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
@ -32,7 +33,6 @@ COVER_SCHEMA = vol.Schema(
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the Gogogate2 component."""
|
||||
from pygogogate2 import Gogogate2API as pygogogate2
|
||||
|
||||
ip_address = config.get(CONF_IP_ADDRESS)
|
||||
name = config.get(CONF_NAME)
|
||||
|
Loading…
x
Reference in New Issue
Block a user