Move imports to top for supla (#29226)

pull/29236/head
springstan 2019-11-29 21:26:23 +01:00 committed by Martin Hjelmare
parent bbecd55c09
commit 93bb1a6816
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@
import logging import logging
from typing import Optional from typing import Optional
from pysupla import SuplaAPI
import voluptuous as vol import voluptuous as vol
from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.const import CONF_ACCESS_TOKEN
@ -38,7 +39,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, base_config): def setup(hass, base_config):
"""Set up the Supla component.""" """Set up the Supla component."""
from pysupla import SuplaAPI
server_confs = base_config[DOMAIN][CONF_SERVERS] server_confs = base_config[DOMAIN][CONF_SERVERS]

View File

@ -2,8 +2,8 @@
import logging import logging
from pprint import pformat from pprint import pformat
from homeassistant.components.switch import SwitchDevice
from homeassistant.components.supla import SuplaChannel from homeassistant.components.supla import SuplaChannel
from homeassistant.components.switch import SwitchDevice
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)