moved imports to top level (#27634)

This commit is contained in:
bouni 2019-10-14 15:00:51 +02:00 committed by Pascal Vizeli
parent 14e3b3af6f
commit aefb807222

View file

@ -1,15 +1,17 @@
"""Support for Cisco IOS Routers."""
import logging
import re
from pexpect import pxssh
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.device_tracker import (
DOMAIN,
PLATFORM_SCHEMA,
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__)
@ -100,8 +102,6 @@ class CiscoDeviceScanner(DeviceScanner):
def _get_arp_data(self):
"""Open connection to the router and get arp entries."""
from pexpect import pxssh
import re
try:
cisco_ssh = pxssh.pxssh()