Move imports to top for satel_integra (#29263)

This commit is contained in:
springstan 2019-12-01 06:22:18 +01:00 committed by Paulus Schoutsen
parent 4ceddc6d35
commit 11b274989a
4 changed files with 6 additions and 6 deletions

View File

@ -2,9 +2,10 @@
import collections
import logging
from satel_integra.satel_integra import AsyncSatel
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
from homeassistant.core import callback
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.discovery import async_load_platform
@ -102,8 +103,6 @@ async def async_setup(hass, config):
port = conf.get(CONF_PORT)
partitions = conf.get(CONF_DEVICE_PARTITIONS)
from satel_integra.satel_integra import AsyncSatel
monitored_outputs = collections.OrderedDict(
list(outputs.items()) + list(switchable_outputs.items())
)

View File

@ -3,6 +3,8 @@ import asyncio
from collections import OrderedDict
import logging
from satel_integra.satel_integra import AlarmState
import homeassistant.components.alarm_control_panel as alarm
from homeassistant.components.alarm_control_panel.const import (
SUPPORT_ALARM_ARM_AWAY,
@ -82,7 +84,6 @@ class SatelIntegraAlarmPanel(alarm.AlarmControlPanel):
def _read_alarm_state(self):
"""Read current status of the alarm and translate it into HA status."""
from satel_integra.satel_integra import AlarmState
# Default - disarmed:
hass_alarm_status = STATE_ALARM_DISARMED

View File

@ -10,9 +10,9 @@ from . import (
CONF_ZONE_NAME,
CONF_ZONE_TYPE,
CONF_ZONES,
DATA_SATEL,
SIGNAL_OUTPUTS_UPDATED,
SIGNAL_ZONES_UPDATED,
DATA_SATEL,
)
_LOGGER = logging.getLogger(__name__)

View File

@ -9,8 +9,8 @@ from . import (
CONF_DEVICE_CODE,
CONF_SWITCHABLE_OUTPUTS,
CONF_ZONE_NAME,
SIGNAL_OUTPUTS_UPDATED,
DATA_SATEL,
SIGNAL_OUTPUTS_UPDATED,
)
_LOGGER = logging.getLogger(__name__)