Skip to content

Commit

Permalink
Move imports to top for discovery (#29020)
Browse files Browse the repository at this point in the history
  • Loading branch information
springstan authored and pvizeli committed Nov 25, 2019
1 parent 430f7bd commit aa00e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from datetime import timedelta
import logging

from netdisco.discovery import NetworkDiscovery
import voluptuous as vol

from homeassistant import config_entries
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit aa00e56

Please sign in to comment.