core/tests/components/zwave_js
kpine 22e475790f
Avoid removing zwave_js devices for non-ready nodes (#59964)
* Only replace a node if the mfgr id / prod id / prod type differ

* Prefer original device name for unready node

* move register_node_in_dev_reg into async_setup_entry

* simplify get_device_id_ext

* Don't need hex ids

* Revert "move register_node_in_dev_reg into async_setup_entry"

This reverts commit f900e5fb0c67cc81657a1452b51c313bccb6f9e1.

* Revert Callable change

* Revert device backup name

* Add test fixtures

* Update existing not ready test with new fixture data

* Check device properties after node added event

* Add entity check

* Check for extended device id

* better device info checks

* Use receive_event to properly setup components

* Cleanup tests

* improve test_replace_different_node

* improve test_replace_same_node

* add test test_node_model_change

* Clean up long comments and strings

* Format

* Reload integration to detect node device config changes

* update assertions

* Disable entities on "value removed" event

* Disable node status sensor on node replacement

* Add test for disabling entities on remove value event

* Add test for disabling node status sensor on node replacement

* disable entity -> remove entity

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 12:31:31 +01:00
..
fixtures Avoid removing zwave_js devices for non-ready nodes (#59964) 2021-12-27 12:31:31 +01:00
__init__.py
common.py
conftest.py Avoid removing zwave_js devices for non-ready nodes (#59964) 2021-12-27 12:31:31 +01:00
test_api.py Add SmartStart provisioning support to zwave_js WS API (#59037) 2021-12-01 11:43:51 +01:00
test_binary_sensor.py Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
test_climate.py
test_config_flow.py Use dataclass properties in zwave_js (#60913) 2021-12-03 14:47:56 +01:00
test_cover.py Open and close tilt for Fibaro devices in zwave_js (#58435) 2021-10-28 22:30:34 +02:00
test_device_action.py Use DeviceAutomationType in tests/components/[s-z]* (#62450) 2021-12-21 11:56:00 +01:00
test_device_condition.py Use DeviceAutomationType in tests/components/[s-z]* (#62450) 2021-12-21 11:56:00 +01:00
test_device_trigger.py Use DeviceAutomationType in tests/components/[s-z]* (#62450) 2021-12-21 11:56:00 +01:00
test_discovery.py Add zwave_js support for Fortrezz SSA3 (#62765) 2021-12-25 10:33:20 +01:00
test_events.py
test_fan.py
test_init.py Avoid removing zwave_js devices for non-ready nodes (#59964) 2021-12-27 12:31:31 +01:00
test_light.py
test_lock.py
test_migrate.py
test_number.py Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
test_select.py
test_sensor.py Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
test_services.py
test_siren.py
test_switch.py
test_trigger.py