core/tests/components/zwave_js
Raman Gupta fe6d6895aa
Migrate existing zwave_js entities if endpoint has changed (#48963)
* Migrate existing zwave_js entities if endpoint has changed

* better function name

* cleanup code

* return as early as we can

* use defaultdict instead of setdefault

* PR comments

* re-add missing logic

* set defaultdict outside of for loop

* additional cleanup

* parametrize tests

* fix reinterview logic

* test that we skip migration when multiple entities are found

* Update tests/components/zwave_js/test_init.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-13 16:37:55 +02:00
..
__init__.py
common.py Add support for selective config parameter entity discovery (#48336) 2021-03-27 18:14:06 +01:00
conftest.py Fallback to current temperature unit for zwave_js climate (#48347) 2021-03-28 22:18:17 +02:00
test_api.py Add zwave_js WS API command to call node.refresh_info (#48564) 2021-04-02 00:35:13 +02:00
test_binary_sensor.py Update tests t-z to use async_get() instead of async_get_registry() (#47655) 2021-03-09 14:25:03 +01:00
test_climate.py Add min and max temp properties to zwave_js.climate (#49125) 2021-04-12 22:12:38 +02:00
test_config_flow.py Make zwave_js add-on manager more flexible (#47356) 2021-03-04 14:14:24 -08:00
test_cover.py Bump zwave-js-server-python to 0.22.0 (#48085) 2021-03-18 18:12:33 +01:00
test_discovery.py Add LZW36 device schema to zwave_js discovery (#47314) 2021-03-04 00:32:37 +01:00
test_events.py Bump zwave-js-server-python to 0.23.0 to support zwave-js 7 (#48094) 2021-03-29 16:28:55 -04:00
test_fan.py Bump zwave-js-server-python to 0.22.0 (#48085) 2021-03-18 18:12:33 +01:00
test_init.py Migrate existing zwave_js entities if endpoint has changed (#48963) 2021-04-13 16:37:55 +02:00
test_light.py Bump zwave-js-server-python to 0.22.0 (#48085) 2021-03-18 18:12:33 +01:00
test_lock.py Bump zwave-js-server-python to 0.22.0 (#48085) 2021-03-18 18:12:33 +01:00
test_number.py Bump zwave-js-server-python to 0.22.0 (#48085) 2021-03-18 18:12:33 +01:00
test_sensor.py Add support for selective config parameter entity discovery (#48336) 2021-03-27 18:14:06 +01:00
test_services.py Check all endpoints for zwave_js.climate hvac_action (#49115) 2021-04-12 12:29:45 -04:00
test_switch.py Bump zwave-js-server-python to 0.22.0 (#48085) 2021-03-18 18:12:33 +01:00