mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
moved imports to top level (#27634)
This commit is contained in:
parent
14e3b3af6f
commit
aefb807222
@ -1,15 +1,17 @@
|
|||||||
"""Support for Cisco IOS Routers."""
|
"""Support for Cisco IOS Routers."""
|
||||||
import logging
|
import logging
|
||||||
|
import re
|
||||||
|
|
||||||
|
from pexpect import pxssh
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
DeviceScanner,
|
DeviceScanner,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT
|
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_USERNAME
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -100,8 +102,6 @@ class CiscoDeviceScanner(DeviceScanner):
|
|||||||
|
|
||||||
def _get_arp_data(self):
|
def _get_arp_data(self):
|
||||||
"""Open connection to the router and get arp entries."""
|
"""Open connection to the router and get arp entries."""
|
||||||
from pexpect import pxssh
|
|
||||||
import re
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cisco_ssh = pxssh.pxssh()
|
cisco_ssh = pxssh.pxssh()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user