diff --git a/homeassistant/components/supla/__init__.py b/homeassistant/components/supla/__init__.py index 4293f187f5b..fd60254cd0a 100644 --- a/homeassistant/components/supla/__init__.py +++ b/homeassistant/components/supla/__init__.py @@ -2,6 +2,7 @@ import logging from typing import Optional +from pysupla import SuplaAPI import voluptuous as vol from homeassistant.const import CONF_ACCESS_TOKEN @@ -38,7 +39,6 @@ CONFIG_SCHEMA = vol.Schema( def setup(hass, base_config): """Set up the Supla component.""" - from pysupla import SuplaAPI server_confs = base_config[DOMAIN][CONF_SERVERS] diff --git a/homeassistant/components/supla/switch.py b/homeassistant/components/supla/switch.py index 5e7a5469950..725771e21e8 100644 --- a/homeassistant/components/supla/switch.py +++ b/homeassistant/components/supla/switch.py @@ -2,8 +2,8 @@ import logging from pprint import pformat -from homeassistant.components.switch import SwitchDevice from homeassistant.components.supla import SuplaChannel +from homeassistant.components.switch import SwitchDevice _LOGGER = logging.getLogger(__name__)