Move imports to top for discovery (#29020)
parent
430f7bdfd4
commit
aa00e56e1c
|
@ -10,6 +10,7 @@ import json
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from netdisco.discovery import NetworkDiscovery
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -129,7 +130,6 @@ CONFIG_SCHEMA = vol.Schema(
|
||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Start a discovery service."""
|
"""Start a discovery service."""
|
||||||
from netdisco.discovery import NetworkDiscovery
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
netdisco = NetworkDiscovery()
|
netdisco = NetworkDiscovery()
|
||||||
|
|
Loading…
Reference in New Issue