core/tests/components/zwave_js
Raman Gupta dd908caeba
Add zwave_js device triggers (#51968)
* Initial support for zwave_js device triggers

* lint

* Add node status changed trigger

* comments

* create helper function and simplify trigger logic

* simplify code

* fix exception

* remove unused type ignore

* switch to append to make future changes easier

* make exception consistent

* Add state config schema validation

* comment

* remove 0 from falsy check

* increase test coverage

* typos

* Add central scene and scene activation value notification triggers

* reorder things for readability and enumerate node statuses

* Add support for Basic CC value notifications

* fix schemas since additional fields on triggers aren't very flexible

* pylint

* remove extra logger statement

* fix comment

* dont use get when we know key will be available in dict

* tweak text

* use better schema for required extra fields that are ints

* rename trigger types to make them easier to parse

* fix strings

* missed renaming of one trigger type

* typo

* Fix strings

* reduce complexity

* Use Al's suggestion for strings

* add additional failure test cases

* remove errant logging statement

* make CC required

* raise vol.Invalid when value ID isn't legit to prepare for next PR

* Use helper function

* fix tests

* black
2021-07-14 14:14:36 -04:00
..
__init__.py
common.py Mark entities for dead zwave_js nodes as unavailable (#48017) 2021-07-03 22:06:07 -04:00
conftest.py Add zwave_js device triggers (#51968) 2021-07-14 14:14:36 -04:00
test_api.py Handle FailedCommand exceptions in zwave_js WS API (#52461) 2021-07-13 00:13:43 -04:00
test_binary_sensor.py Use disabled_by constants (#49584) 2021-04-23 09:56:42 +02:00
test_climate.py Don't raise when setting HVAC mode without a mode ZwaveValue (#52444) 2021-07-06 16:33:07 +02:00
test_config_flow.py Add zwave_js options flow to reconfigure server (#51840) 2021-06-24 13:15:42 +02:00
test_cover.py Set zwave_js cover device_class for shutters and blinds (#50643) 2021-05-16 08:26:16 +02:00
test_device_condition.py Initial support for zwave_js device conditions (#52003) 2021-07-11 21:22:33 -07:00
test_device_trigger.py Add zwave_js device triggers (#51968) 2021-07-14 14:14:36 -04:00
test_discovery.py Add zwave_js support for HeatIt Z-TRM2fx (#50317) 2021-05-09 15:28:35 -04:00
test_events.py Add zwave_js discovery schema for Vision Security ZL7432 (#49510) 2021-04-28 10:22:54 +02:00
test_fan.py
test_init.py Move zwave_js migration tests into new module (#52075) 2021-06-21 20:42:03 -04:00
test_light.py Add transition support to zwave_js lights (#52160) 2021-07-09 12:15:20 -04:00
test_lock.py Mark entities for dead zwave_js nodes as unavailable (#48017) 2021-07-03 22:06:07 -04:00
test_migrate.py Move zwave_js migration tests into new module (#52075) 2021-06-21 20:42:03 -04:00
test_number.py
test_sensor.py Add zwave_js node status sensor (#51181) 2021-05-31 08:46:28 +02:00
test_services.py Change behavior of Z-Wave JS services (#52941) 2021-07-13 01:02:36 -04:00
test_siren.py Add support for Z-Wave JS siren (#52948) 2021-07-14 10:14:13 -04:00
test_switch.py