Commit Graph
16 Commits
Author SHA1 Message Date
Simone ChemelliandGitHub 73da736ebb Patch the correct socket method in SNMP (#167081) 2026-04-01 18:55:53 +02:00
Simone ChemelliandGitHub cb8597d62f Improve SNMP tests and avoid dns lookups (#166604) 2026-03-31 12:54:40 +01:00
9f3d890e91 Bump pysnmp to v7 and brother to v5 (#129761)
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2025-07-14 10:46:13 +02:00
Maciej BieniekandGitHub 69700f068f Migrate back from pysnmp-lextudio to pysnmp (#123579) 2024-08-16 16:57:10 -05:00
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 KostonandGitHub 76391d71d6 Fix snmp doing blocking I/O in the event loop (#118521) 2024-05-31 07:44:28 -05:00
epenetandGitHub e58d060f82 Use registry fixtures in tests (s) (#118295) 2024-05-28 15:41:03 +02:00
Lex LiandGitHub 1f37774352 Fix type cast in snmp (#114795) 2024-04-05 08:41:15 +02:00
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 BieniekandGitHub 77283704a5 Bump brother library, use pysnmp-lextudio with SNMP integration (#105591) 2023-12-12 11:36:11 -10:00
Marc MuellerandGitHub ba91aaa28d Add support for Python 3.12 (#101651) 2023-10-10 21:34:49 +02:00
Maciej BieniekandGitHub 6dc99d2ad8 Bump brother and pysnmplib backend libraries (#89100)
* Bump brother and pysnmplib

* Fix tests
2023-03-05 12:40:12 +01:00
epenetandGitHub 8165f487c7 Adjust invalid test values in snmp (#86006) 2023-01-16 14:00:37 +01:00
Franck NijhofandGitHub 2e92fefc0a Fix uom/device class mismatches in tests (#84372) 2022-12-21 22:47:59 +01:00
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 MontnemeryandGitHub e2327622c3 Migrate SNMP sensor to TemplateEntity (#73324) 2022-06-16 15:02:50 +02:00