Move econet imports at top-level (#29050)
This commit is contained in:
parent
f504ac8c65
commit
e40dda3ce3
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
import datetime
|
||||
import logging
|
||||
|
||||
from pyeconet.api import PyEcoNet
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.water_heater import (
|
||||
|
@ -74,7 +75,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the EcoNet water heaters."""
|
||||
from pyeconet.api import PyEcoNet
|
||||
|
||||
hass.data[ECONET_DATA] = {}
|
||||
hass.data[ECONET_DATA]["water_heaters"] = []
|
||||
|
|
Loading…
Add table
Reference in a new issue