Move ecoal_boiler imports at top-level (#29049)

pull/28989/head^2
Quentame 2019-11-25 14:08:52 +01:00 committed by Pascal Vizeli
parent cb5d00a07b
commit 71bafba9ec
1 changed files with 3 additions and 3 deletions

View File

@ -1,15 +1,16 @@
"""Support to control ecoal/esterownik.pl coal/wood boiler controller."""
import logging
from ecoaliface.simple import ECoalController
import voluptuous as vol
from homeassistant.const import (
CONF_HOST,
CONF_PASSWORD,
CONF_USERNAME,
CONF_MONITORED_CONDITIONS,
CONF_PASSWORD,
CONF_SENSORS,
CONF_SWITCHES,
CONF_USERNAME,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.discovery import load_platform
@ -80,7 +81,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, hass_config):
"""Set up global ECoalController instance same for sensors and switches."""
from ecoaliface.simple import ECoalController
conf = hass_config[DOMAIN]
host = conf[CONF_HOST]