13 Commits

Author SHA1 Message Date
Maciej Bieniek
69700f068f
Migrate back from pysnmp-lextudio to pysnmp (#123579) 2024-08-16 16:57:10 -05:00
Guy Lowe
a2dd017229
Add unit tests for SNMP integer Switches (#123094)
* Add unit tests for SNMP Switches (integer only)

* Add unit test for SNMP switches (integer unknown)

* log a warning when SNMP response is not a recognised payload

* Use a single configuration for all test_integer_switch tests

* Tweak unknown SNMP response warning

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* import STATE_ consts

* rename tests/components/snmp/test_integer_switch.py to test_switch.py

* check that a warning is logged if the SNMP response payload is unknown

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-06 11:56:39 +02:00
J. Nick Koston
76391d71d6
Fix snmp doing blocking I/O in the event loop (#118521) 2024-05-31 07:44:28 -05:00
epenet
e58d060f82
Use registry fixtures in tests (s) (#118295) 2024-05-28 15:41:03 +02:00
Lex Li
1f37774352
Fix type cast in snmp (#114795) 2024-04-05 08:41:15 +02:00
Lex Li
2bc4a5067d
snmp: Better sensor support to resolve previous issues (#113624)
Co-authored-by: Christian Kühnel <christian.kuehnel@gmail.com>
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2024-03-16 22:56:21 +01:00
Maciej Bieniek
77283704a5
Bump brother library, use pysnmp-lextudio with SNMP integration (#105591) 2023-12-12 11:36:11 -10:00
Marc Mueller
ba91aaa28d
Add support for Python 3.12 (#101651) 2023-10-10 21:34:49 +02:00
Maciej Bieniek
6dc99d2ad8
Bump brother and pysnmplib backend libraries (#89100)
* Bump brother and pysnmplib

* Fix tests
2023-03-05 12:40:12 +01:00
epenet
8165f487c7
Adjust invalid test values in snmp (#86006) 2023-01-16 14:00:37 +01:00
Franck Nijhof
2e92fefc0a
Fix uom/device class mismatches in tests (#84372) 2022-12-21 22:47:59 +01:00
Maciej Bieniek
d9903c4cf9
Bump brother and pysnmplib (#84107)
* Bump brother version

* Bump pysnmplib version

* Update sensor platform

* Update switch platform

* Update tests

* Bump brother

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-12-17 12:34:43 +01:00
Erik Montnemery
e2327622c3
Migrate SNMP sensor to TemplateEntity (#73324) 2022-06-16 15:02:50 +02:00