def __init__(self, config):
        from pysnmp.entity.rfc3413.oneliner import cmdgen
        self.snmp = cmdgen.CommandGenerator()

        self.host = cmdgen.UdpTransportTarget((config[CONF_HOST], 161))
        self.community = cmdgen.CommunityData(config[CONF_COMMUNITY])
        self.baseoid = cmdgen.MibVariable(config[CONF_BASEOID])

        self.lock = threading.Lock()

        self.last_results = []

        # Test the router is accessible
        data = self.get_snmp_data()
        self.success_init = data is not None
Imports an object based on a string.  This is useful if you want to
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/device_tracker/snmp.py/SnmpScanner.__init__--crossover with--dataset/ETHPy150Open aino/aino-utkik/utkik/utils.py/import_string