Move imports to top for mysensors (#29517)

This commit is contained in:
springstan 2019-12-05 19:54:43 +01:00 committed by Martin Hjelmare
parent ec8ea02273
commit b4fda5faab
8 changed files with 9 additions and 9 deletions

View file

@ -6,6 +6,7 @@ import socket
import sys
import async_timeout
from mysensors import mysensors
import voluptuous as vol
from homeassistant.const import CONF_OPTIMISTIC, EVENT_HOMEASSISTANT_STOP
@ -84,7 +85,6 @@ async def setup_gateways(hass, config):
async def _get_gateway(hass, config, gateway_conf, persistence_file):
"""Return gateway after setup of the gateway."""
from mysensors import mysensors
conf = config[DOMAIN]
persistence = conf[CONF_PERSISTENCE]