hass-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
test_button.py
test_climate.py
test_config_flow.py
test_config_validation.py
test_cover.py
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
test_diagnostics.py
test_discovery.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_events.py
test_fan.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_humidifier.py
test_init.py
test_light.py
test_lock.py
test_logbook.py
test_migrate.py
test_number.py
test_select.py
test_sensor.py
test_services.py
test_siren.py
test_switch.py
test_trigger.py
test_update.py Introduce a delay between update entity calls (#89737) 2023-03-20 18:30:56 -04:00