Move imports to top for discovery (#29020)

pull/29046/head
springstan 2019-11-25 12:15:55 +01:00 committed by Pascal Vizeli
parent 430f7bdfd4
commit aa00e56e1c
1 changed files with 1 additions and 1 deletions

View File

@ -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()