core/tests
Michael Kowalchuk 74cfbf5f42
Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js (#59697)
* Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js

* Fix pylint errors

* Remove unused param in tests

* Fix test values

* Address various review notes

* Remove now-redundant assertion

* Add an additional test case for set_percentage=0

* Use round() instead of int() for percentage computations; this makes the percentage setting match the setpoints in the UI

* Add additional tests

* Fix pct conversions

* Make conversion tests exhaustive

* Add tests for discovery data templates

* Revert "Add tests for discovery data templates"

This reverts commit 85dcbc0903.

* Improve typing on ConfigurableFanSpeedDataTemplate#resolve_data

* Move config error handling to the discovery data template

* Fix checks for config data

* Revise fallback logic in percentage_to_zwave_speed and ensure that the speed list is non-empty

* Rework error handling

* Fix runtime fan speed updates

* Use warning instead of warn

* Move data validation to get_speed_config; turns out that resolve_data is only called once, at startup.

* Temporarily remove the not-yet-used fixed fan speed template.  Add an additional assertion to ensure speeds are sorted.

* Add a comment about the assertions in discovery_data_template.py

* Update homeassistant/components/zwave_js/discovery_data_template.py

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

* Fix typo in comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-24 11:31:59 +01:00
..
auth Block cloud explicitely from trusted networks (#59333) 2021-11-12 10:25:01 +01:00
components Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js (#59697) 2021-11-24 11:31:59 +01:00
fixtures Fix regression after merging fixtures with old path (#59187) 2021-11-05 21:10:55 +01:00
hassfest Fix issue with ranges in requirements with hassfest (#59470) 2021-11-12 09:39:30 +01:00
helpers Add UNIX timestamp detection to `as_datetime` template filter (#60126) 2021-11-24 09:51:56 +01:00
mock
resources
scripts
test_util Use HTTPStatus instead of HTTP_* constants in various test mocks (#56543) 2021-10-01 15:52:45 -07:00
testing_config Add frequency device class for sensor (#59700) 2021-11-15 14:33:50 +01:00
util Change device entry type to an StrEnum (#59940) 2021-11-22 18:14:15 +01:00
__init__.py
bandit.yaml
common.py Improve some entity registry tests (#59902) 2021-11-22 10:24:37 +01:00
conftest.py Bump zeroconf to 0.37.0 (#59932) 2021-11-18 20:23:20 -08:00
ignore_uncaught_exceptions.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_bootstrap.py
test_config.py Add minor version support to storage.Store (#59882) 2021-11-18 17:15:40 +01:00
test_config_entries.py Index in-progress flows to avoid linear search (#58146) 2021-10-22 07:19:49 -10:00
test_core.py
test_data_entry_flow.py Index in-progress flows to avoid linear search (#58146) 2021-10-22 07:19:49 -10:00
test_exceptions.py
test_loader.py Ensure domain is correct format (#58429) 2021-10-25 15:56:07 -07:00
test_main.py
test_requirements.py
test_runner.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_setup.py
test_test_fixtures.py Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00