Move imports in netgear component (#27776)

This commit is contained in:
Quentame 2019-10-17 15:05:14 +02:00 committed by Pascal Vizeli
parent 62fcea2a8d
commit 12a8e7520e

View File

@ -1,6 +1,7 @@
"""Support for Netgear routers.""" """Support for Netgear routers."""
import logging import logging
from pynetgear import Netgear
import voluptuous as vol import voluptuous as vol
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
@ -71,14 +72,13 @@ class NetgearDeviceScanner(DeviceScanner):
accesspoints, accesspoints,
): ):
"""Initialize the scanner.""" """Initialize the scanner."""
import pynetgear
self.tracked_devices = devices self.tracked_devices = devices
self.excluded_devices = excluded_devices self.excluded_devices = excluded_devices
self.tracked_accesspoints = accesspoints self.tracked_accesspoints = accesspoints
self.last_results = [] self.last_results = []
self._api = pynetgear.Netgear(password, host, username, port, ssl) self._api = Netgear(password, host, username, port, ssl)
_LOGGER.info("Logging in") _LOGGER.info("Logging in")