From 6e44ccf683b0e1661f1fe593d6883be5bc7fb992 Mon Sep 17 00:00:00 2001 From: Fabian Affolter <mail@fabian-affolter.ch> Date: Sun, 26 Mar 2017 15:53:53 +0200 Subject: [PATCH] Upgrade pysnmp to 4.3.5 (#6793) --- homeassistant/components/device_tracker/snmp.py | 2 +- homeassistant/components/sensor/snmp.py | 14 +++++++------- requirements_all.txt | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/device_tracker/snmp.py b/homeassistant/components/device_tracker/snmp.py index 6e8b07e6bab..cbe70075665 100644 --- a/homeassistant/components/device_tracker/snmp.py +++ b/homeassistant/components/device_tracker/snmp.py @@ -19,7 +19,7 @@ from homeassistant.util import Throttle _LOGGER = logging.getLogger(__name__) -REQUIREMENTS = ['pysnmp==4.3.4'] +REQUIREMENTS = ['pysnmp==4.3.5'] CONF_COMMUNITY = 'community' CONF_AUTHKEY = 'authkey' diff --git a/homeassistant/components/sensor/snmp.py b/homeassistant/components/sensor/snmp.py index b72398c3736..1342f3d2a9e 100644 --- a/homeassistant/components/sensor/snmp.py +++ b/homeassistant/components/sensor/snmp.py @@ -16,7 +16,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle -REQUIREMENTS = ['pysnmp==4.3.4'] +REQUIREMENTS = ['pysnmp==4.3.5'] _LOGGER = logging.getLogger(__name__) @@ -42,9 +42,9 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the SNMP sensor.""" - from pysnmp.hlapi import (getCmd, CommunityData, SnmpEngine, - UdpTransportTarget, ContextData, ObjectType, - ObjectIdentity) + from pysnmp.hlapi import ( + getCmd, CommunityData, SnmpEngine, UdpTransportTarget, ContextData, + ObjectType, ObjectIdentity) name = config.get(CONF_NAME) host = config.get(CONF_HOST) @@ -114,9 +114,9 @@ class SnmpData(object): @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """Get the latest data from the remote SNMP capable host.""" - from pysnmp.hlapi import (getCmd, CommunityData, SnmpEngine, - UdpTransportTarget, ContextData, ObjectType, - ObjectIdentity) + from pysnmp.hlapi import ( + getCmd, CommunityData, SnmpEngine, UdpTransportTarget, ContextData, + ObjectType, ObjectIdentity) errindication, errstatus, errindex, restable = next( getCmd(SnmpEngine(), CommunityData(self._community, mpModel=0), diff --git a/requirements_all.txt b/requirements_all.txt index e78297ca418..05655e3ed07 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -577,7 +577,7 @@ pysma==0.1.3 # homeassistant.components.device_tracker.snmp # homeassistant.components.sensor.snmp -pysnmp==4.3.4 +pysnmp==4.3.5 # homeassistant.components.media_player.clementine python-clementine-remote==1.0.1 -- GitLab