core/tests/components/zwave_js
Jan Bouwhuis 953a212dd6
Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560)
* Use ServiceValidationError for fan preset_mode

* Use _valid_preset_mode_or_raise to raise

* Move preset_mode validation to entity component

* Fix bond fan and comments

* Fixes baf, fjaraskupan and template

* More integration adjustments

* Add custom components mock and test code

* Make NotValidPresetModeError subclass

* Update homeassistant/components/fan/strings.json

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

* Keep bond has_action validation

* Move demo test asserts outside context block

* Follow up comment

* Update homeassistant/components/fan/strings.json

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Fix demo tests

* Remove pylint disable

* Remove unreachable code

* Update homeassistant/components/fan/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Use NotValidPresetModeError, Final methods

* Address comments

* Correct docst

* Follow up comments

* Update homeassistant/components/fan/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-29 13:56:51 +01:00
..
fixtures Add Z-wave climate sensor override for Heatit Z-TRM6 (#103896) 2023-11-24 11:01:15 +01:00
scripts Fix zwave_js cover bug for Window Covering CC values (#103289) 2023-11-03 15:36:48 +01:00
__init__.py
common.py
conftest.py Add Z-wave climate sensor override for Heatit Z-TRM6 (#103896) 2023-11-24 11:01:15 +01:00
test_api.py Add alert to zwave_js device info page for custom device config (#104115) 2023-11-26 10:08:20 +01:00
test_binary_sensor.py
test_button.py
test_climate.py Add Z-wave climate sensor override for Heatit Z-TRM6 (#103896) 2023-11-24 11:01:15 +01:00
test_config_flow.py
test_config_validation.py
test_cover.py Fix zwave_js cover bug for Window Covering CC values (#103289) 2023-11-03 15:36:48 +01:00
test_device_action.py
test_device_condition.py
test_device_trigger.py Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
test_diagnostics.py
test_discovery.py Add select entity for zwave_js Door Lock CC (#104292) 2023-11-23 12:51:29 +01:00
test_event.py
test_events.py
test_fan.py Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560) 2023-11-29 13:56:51 +01:00
test_helpers.py
test_humidifier.py
test_init.py Add select entity for zwave_js Door Lock CC (#104292) 2023-11-23 12:51:29 +01:00
test_light.py
test_lock.py Add zwave_js.set_lock_configuration service (#103595) 2023-11-15 17:01:20 +01:00
test_logbook.py
test_migrate.py
test_number.py
test_repairs.py
test_select.py Add select entity for zwave_js Door Lock CC (#104292) 2023-11-23 12:51:29 +01:00
test_sensor.py
test_services.py Expand `zwave_js.set_config_parameter` with additional parameters (#102092) 2023-11-08 17:05:31 -05:00
test_siren.py Fix zwave_js siren name (#103016) 2023-10-29 17:44:15 +01:00
test_switch.py
test_trigger.py
test_update.py Add test for firmware update scenario (#103314) 2023-11-04 13:12:06 +01:00