Move imports to top for supla (#29226)
parent
bbecd55c09
commit
93bb1a6816
|
@ -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]
|
||||
|
||||
|
|
|
@ -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__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue