core/tests/components/snmp
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
..
__init__.py
test_float_sensor.py
test_init.py
test_integer_sensor.py
test_negative_sensor.py
test_string_sensor.py
test_switch.py Add unit tests for SNMP integer Switches (#123094) 2024-08-06 11:56:39 +02:00