Move imports to top for mysensors (#29517)
This commit is contained in:
parent
ec8ea02273
commit
b4fda5faab
8 changed files with 9 additions and 9 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue