* 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>
* added support for more SNMP variable types
* Fix SNMP pull request formatting
* retry fix linting errors
* Created SNMP vartype dict
* Moved to Integer instead of Integer32 as default vartype
* Update homeassistant/components/snmp/switch.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/snmp/switch.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/snmp/switch.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Consolidate
* Fix tests
* Update imports
* Fix import
* Use importlib because integration and package share name
* Fix more tests
* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00
Renamed from homeassistant/components/switch/snmp.py (Browse further)