From 9974af39ac386c8a88f6692fd7d7b62b3d123e4f Mon Sep 17 00:00:00 2001 From: Lex Li <425130+lextm@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:51:08 -0500 Subject: [PATCH] Upgrade `pysnmp-lextudio` to version `6.0.9` (#112795) --- homeassistant/components/snmp/manifest.json | 2 +- homeassistant/components/snmp/switch.py | 2 +- pyproject.toml | 3 --- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/snmp/manifest.json b/homeassistant/components/snmp/manifest.json index 8d046b609b8..cd6c1dd9152 100644 --- a/homeassistant/components/snmp/manifest.json +++ b/homeassistant/components/snmp/manifest.json @@ -5,5 +5,5 @@ "documentation": "https://www.home-assistant.io/integrations/snmp", "iot_class": "local_polling", "loggers": ["pyasn1", "pysmi", "pysnmp"], - "requirements": ["pysnmp-lextudio==5.0.34"] + "requirements": ["pysnmp-lextudio==6.0.9"] } diff --git a/homeassistant/components/snmp/switch.py b/homeassistant/components/snmp/switch.py index 11bb4768e38..a447cdc8e9c 100644 --- a/homeassistant/components/snmp/switch.py +++ b/homeassistant/components/snmp/switch.py @@ -238,7 +238,7 @@ class SnmpSwitch(SwitchEntity): async def async_turn_on(self, **kwargs: Any) -> None: """Turn on the switch.""" - # If vartype set, use it - http://snmplabs.com/pysnmp/docs/api-reference.html#pysnmp.smi.rfc1902.ObjectType + # If vartype set, use it - https://www.pysnmp.com/pysnmp/docs/api-reference.html#pysnmp.smi.rfc1902.ObjectType await self._execute_command(self._command_payload_on) async def async_turn_off(self, **kwargs: Any) -> None: diff --git a/pyproject.toml b/pyproject.toml index e27562d1a8d..5d2573ab0ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -530,9 +530,6 @@ filterwarnings = [ "ignore:loop argument is deprecated:DeprecationWarning:emulated_roku", # https://github.com/thecynic/pylutron - v0.2.10 "ignore:setDaemon\\(\\) is deprecated, set the daemon attribute instead:DeprecationWarning:pylutron", - # Fixed for Python 3.12 - # https://github.com/lextudio/pysnmp/issues/10 - "ignore:The asyncore module is deprecated and will be removed in Python 3.12:DeprecationWarning:pysnmp.carrier.asyncore.base", # Wrong stacklevel # https://bugs.launchpad.net/beautifulsoup/+bug/2034451 "ignore:It looks like you're parsing an XML document using an HTML parser:UserWarning:bs4.builder", diff --git a/requirements_all.txt b/requirements_all.txt index cde8555cb9f..8bfeb90c806 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2149,7 +2149,7 @@ pysmartthings==0.7.8 pysml==0.0.12 # homeassistant.components.snmp -pysnmp-lextudio==5.0.34 +pysnmp-lextudio==6.0.9 # homeassistant.components.snooz pysnooz==0.8.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index d8afd6223f9..a584d53ec81 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1670,7 +1670,7 @@ pysmartthings==0.7.8 pysml==0.0.12 # homeassistant.components.snmp -pysnmp-lextudio==5.0.34 +pysnmp-lextudio==6.0.9 # homeassistant.components.snooz pysnooz==0.8.6