From aa00e56e1c98ee9a0a83206fb5b5753651238d12 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Mon, 25 Nov 2019 12:15:55 +0100 Subject: [PATCH] Move imports to top for discovery (#29020) --- homeassistant/components/discovery/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/discovery/__init__.py b/homeassistant/components/discovery/__init__.py index 15fcfc15338da2..884f6680d7cd3d 100644 --- a/homeassistant/components/discovery/__init__.py +++ b/homeassistant/components/discovery/__init__.py @@ -10,6 +10,7 @@ from datetime import timedelta import logging +from netdisco.discovery import NetworkDiscovery import voluptuous as vol from homeassistant import config_entries @@ -129,7 +130,6 @@ async def async_setup(hass, config): """Start a discovery service.""" - from netdisco.discovery import NetworkDiscovery logger = logging.getLogger(__name__) netdisco = NetworkDiscovery()