mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Move imports to top for somfy_mylink (#29464)
This commit is contained in:
parent
270d97d789
commit
dbd231b3a0
@ -1,6 +1,7 @@
|
|||||||
"""Component for the Somfy MyLink device supporting the Synergy API."""
|
"""Component for the Somfy MyLink device supporting the Synergy API."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from somfy_mylink_synergy import SomfyMyLinkSynergy
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||||
@ -48,7 +49,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Set up the MyLink platform."""
|
"""Set up the MyLink platform."""
|
||||||
from somfy_mylink_synergy import SomfyMyLinkSynergy
|
|
||||||
|
|
||||||
host = config[DOMAIN][CONF_HOST]
|
host = config[DOMAIN][CONF_HOST]
|
||||||
port = config[DOMAIN][CONF_PORT]
|
port = config[DOMAIN][CONF_PORT]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user