Move imports to top for somfy_mylink (#29464)
parent
270d97d789
commit
dbd231b3a0
|
@ -1,6 +1,7 @@
|
|||
"""Component for the Somfy MyLink device supporting the Synergy API."""
|
||||
import logging
|
||||
|
||||
from somfy_mylink_synergy import SomfyMyLinkSynergy
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
@ -48,7 +49,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
|
||||
async def async_setup(hass, config):
|
||||
"""Set up the MyLink platform."""
|
||||
from somfy_mylink_synergy import SomfyMyLinkSynergy
|
||||
|
||||
host = config[DOMAIN][CONF_HOST]
|
||||
port = config[DOMAIN][CONF_PORT]
|
||||
|
|
Loading…
Reference in New Issue