Move imports to top for somfy_mylink (#29464)

pull/29495/head
springstan 2019-12-05 06:17:45 +01:00 committed by Paulus Schoutsen
parent 270d97d789
commit dbd231b3a0
1 changed files with 1 additions and 1 deletions

View File

@ -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]