mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move imports in netgear component (#27776)
This commit is contained in:
parent
62fcea2a8d
commit
12a8e7520e
@ -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")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user