mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Move imports to top for supla (#29226)
This commit is contained in:
parent
bbecd55c09
commit
93bb1a6816
@ -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]
|
||||||
|
|
||||||
|
@ -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__)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user