Move imports to top for envisalink (#29457)

This commit is contained in:
springstan 2019-12-05 06:21:12 +01:00 committed by Paulus Schoutsen
parent 5586f40ab0
commit 0158f29e4e
2 changed files with 4 additions and 4 deletions

View File

@ -2,14 +2,15 @@
import asyncio
import logging
from pyenvisalink import EnvisalinkAlarmPanel
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_TIMEOUT, EVENT_HOMEASSISTANT_STOP
from homeassistant.core import callback
import homeassistant.helpers.config_validation as cv
from homeassistant.const import EVENT_HOMEASSISTANT_STOP, CONF_TIMEOUT, CONF_HOST
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.discovery import async_load_platform
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
@ -98,7 +99,6 @@ SERVICE_SCHEMA = vol.Schema(
async def async_setup(hass, config):
"""Set up for Envisalink devices."""
from pyenvisalink import EnvisalinkAlarmPanel
conf = config.get(DOMAIN)

View File

@ -4,8 +4,8 @@ import logging
import voluptuous as vol
from homeassistant.components.alarm_control_panel import (
AlarmControlPanel,
FORMAT_NUMBER,
AlarmControlPanel,
)
from homeassistant.components.alarm_control_panel.const import (
SUPPORT_ALARM_ARM_AWAY,