From d9b6b504129cb85fac345a30e4db36542fb4c356 Mon Sep 17 00:00:00 2001
From: thijs snijder <snijder@astron.nl>
Date: Wed, 6 Apr 2022 15:32:26 +0200
Subject: [PATCH] minor changes and linting AAAAaaa

---
 .../tangostationcontrol/devices/snmp_device.py               | 5 ++++-
 .../test/clients/SNMP_mib_loading/TEST-MIB.py                | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/devices/snmp_device.py b/tangostationcontrol/tangostationcontrol/devices/snmp_device.py
index 95b426557..fa371444c 100644
--- a/tangostationcontrol/tangostationcontrol/devices/snmp_device.py
+++ b/tangostationcontrol/tangostationcontrol/devices/snmp_device.py
@@ -14,13 +14,14 @@
 # PyTango imports
 from tango.server import run
 from tango.server import device_property
-from tango import AttrWriteType
 
 # Additional import
 from tangostationcontrol.clients.snmp_client import SNMP_client, mib_loader
 from tangostationcontrol.clients.attribute_wrapper import attribute_wrapper
 from tangostationcontrol.devices.lofar_device import lofar_device
 
+import os
+
 import numpy
 
 import logging
@@ -39,6 +40,8 @@ class SNMP(lofar_device):
         - Type:'DevString'
         SNMP_host
         - Type:'DevULong'
+        SNMP_community
+        - Type:'DevString'
         SNMP_timeout
         - Type:'DevDouble'
         """
diff --git a/tangostationcontrol/tangostationcontrol/test/clients/SNMP_mib_loading/TEST-MIB.py b/tangostationcontrol/tangostationcontrol/test/clients/SNMP_mib_loading/TEST-MIB.py
index 0e446c02d..de190adc7 100644
--- a/tangostationcontrol/tangostationcontrol/test/clients/SNMP_mib_loading/TEST-MIB.py
+++ b/tangostationcontrol/tangostationcontrol/test/clients/SNMP_mib_loading/TEST-MIB.py
@@ -2,6 +2,6 @@ Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, iso, Gau
 ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint")
 NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
 
-testNamedValue = MibScalar((9, 8, 7, 6, 5, 4, 3, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("A", 1), ("B", 2), ("C", 3), ("D", 4)))).setMaxAccess("readonly")
+testNamedValue = MibScalar((9, 8, 7, 6, 5, 4, 3, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("A", 1), ("B", 2), ("C", 3), ("D", 4)))).setMaxAccess("readonly")
 mibBuilder.exportSymbols("TEST-MIB", testNamedValue=testNamedValue)
 
-- 
GitLab