Move imports in snmp component (#27939)

* move imports in snmp component

* fix: move hlapi import top level
This commit is contained in:
Michał Mrozek authored and Fabian Affolter committed 2019-10-20 10:06:32 +02:00
1 parent a5ec5b567e
commit e01562ceea
3 files changed
+25 -24

No files matched your search

@@ -2,6 +2,8 @@
import binascii
import logging
from pysnmp.entity import config as cfg
from pysnmp.entity.rfc3413.oneliner import cmdgen
import voluptuous as vol
from homeassistant.components.device_tracker import (
@@ -45,8 +47,6 @@ class SnmpScanner(DeviceScanner):
def __init__(self, config):
"""Initialize the scanner."""
from pysnmp.entity.rfc3413.oneliner import cmdgen
from pysnmp.entity import config as cfg
self.snmp = cmdgen.CommandGenerator()