From 93bb1a681645e5229f45be435eaa52b43558dc32 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Fri, 29 Nov 2019 21:26:23 +0100 Subject: [PATCH] Move imports to top for supla (#29226) --- homeassistant/components/supla/__init__.py | 2 +- homeassistant/components/supla/switch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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__)