Move ecoal_boiler imports at top-level (#29049)
parent
cb5d00a07b
commit
71bafba9ec
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue