core/tests/components/zwave_js
Raman Gupta cbe85126cb
Introduce a delay between update entity calls (#89737)
* Introduce a delay between update entity calls

* Update homeassistant/components/zwave_js/update.py

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

* move delay to constant and patch

* rename constant

* Switch to async_call_later

* Remove failing test

* Reimplement to solve task problem

* comment

* pass count directly so that value doesn't mutate before we store it

* lines

* Fix logic and tests

* Comments

* Readd missed coverage

* Add test for delays

* cleanup

* Fix async_added_to_hass logic

* flip conditional

* Store firmware info in extra data so we can restore it along with latest version

* Comment

* comment

* Add test for is_running check and fix bugs

* comment

* Add tests for various restore state scenarios

* move comment so it's less confusing

* improve typing

* consolidate into constant and remove unused one

* Update update.py

* update test to unknown state during partial restore

* fix elif check

* Fix type

* clean up test docstrings and function names

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-20 18:30:56 -04:00
..
fixtures Add ZWaveDiscoverySchema for Merten 507801 (#88342) 2023-03-01 00:47:47 -05:00
__init__.py
common.py
conftest.py Introduce a delay between update entity calls (#89737) 2023-03-20 18:30:56 -04:00
test_api.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_binary_sensor.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_button.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_climate.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_config_flow.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_config_validation.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_cover.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_device_action.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_device_condition.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_device_trigger.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_diagnostics.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_discovery.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_events.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_fan.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_humidifier.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_init.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_light.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_lock.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_logbook.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_migrate.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_number.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_select.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_sensor.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_services.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_siren.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_switch.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_trigger.py Add type hints to integration tests (zwave_js) (#88311) 2023-02-18 14:59:26 +01:00
test_update.py Introduce a delay between update entity calls (#89737) 2023-03-20 18:30:56 -04:00