Skip to content

Commit

Permalink
Migrate back from pysnmp-lextudio to pysnmp (home-assistant#123579)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu authored Aug 16, 2024
1 parent 91951ed commit 69700f0
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/brother/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"iot_class": "local_polling",
"loggers": ["brother", "pyasn1", "pysmi", "pysnmp"],
"quality_scale": "platinum",
"requirements": ["brother==4.2.0"],
"requirements": ["brother==4.3.0"],
"zeroconf": [
{
"type": "_printer._tcp.local.",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/snmp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"documentation": "https://www.home-assistant.io/integrations/snmp",
"iot_class": "local_polling",
"loggers": ["pyasn1", "pysmi", "pysnmp"],
"requirements": ["pysnmp-lextudio==6.0.11"]
"requirements": ["pysnmp==6.2.5"]
}
3 changes: 0 additions & 3 deletions homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ websockets>=11.0.1
# pysnmplib is no longer maintained and does not work with newer
# python
pysnmplib==1000000000.0.0
# pysnmp is no longer maintained and does not work with newer
# python
pysnmp==1000000000.0.0

# The get-mac package has been replaced with getmac. Installing get-mac alongside getmac
# breaks getmac due to them both sharing the same python package name inside 'getmac'.
Expand Down
4 changes: 2 additions & 2 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ bring-api==0.8.1
broadlink==0.19.0

# homeassistant.components.brother
brother==4.2.0
brother==4.3.0

# homeassistant.components.brottsplatskartan
brottsplatskartan==1.0.5
Expand Down Expand Up @@ -2208,7 +2208,7 @@ pysmartthings==0.7.8
pysml==0.0.12

# homeassistant.components.snmp
pysnmp-lextudio==6.0.11
pysnmp==6.2.5

# homeassistant.components.snooz
pysnooz==0.8.6
Expand Down
4 changes: 2 additions & 2 deletions requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ bring-api==0.8.1
broadlink==0.19.0

# homeassistant.components.brother
brother==4.2.0
brother==4.3.0

# homeassistant.components.brottsplatskartan
brottsplatskartan==1.0.5
Expand Down Expand Up @@ -1762,7 +1762,7 @@ pysmartthings==0.7.8
pysml==0.0.12

# homeassistant.components.snmp
pysnmp-lextudio==6.0.11
pysnmp==6.2.5

# homeassistant.components.snooz
pysnooz==0.8.6
Expand Down
3 changes: 0 additions & 3 deletions script/gen_requirements_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@
# pysnmplib is no longer maintained and does not work with newer
# python
pysnmplib==1000000000.0.0
# pysnmp is no longer maintained and does not work with newer
# python
pysnmp==1000000000.0.0
# The get-mac package has been replaced with getmac. Installing get-mac alongside getmac
# breaks getmac due to them both sharing the same python package name inside 'getmac'.
Expand Down
2 changes: 1 addition & 1 deletion tests/components/snmp/test_integer_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from unittest.mock import patch

from pysnmp.hlapi import Integer32
from pysnmp.proto.rfc1902 import Integer32
import pytest

from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
Expand Down
2 changes: 1 addition & 1 deletion tests/components/snmp/test_negative_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from unittest.mock import patch

from pysnmp.hlapi import Integer32
from pysnmp.proto.rfc1902 import Integer32
import pytest

from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
Expand Down
2 changes: 1 addition & 1 deletion tests/components/snmp/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from unittest.mock import patch

from pysnmp.hlapi import Integer32
from pysnmp.proto.rfc1902 import Integer32
import pytest

from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
Expand Down

0 comments on commit 69700f0

Please sign in to comment.