core/tests/components/mqtt
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
..
__init__.py
conftest.py
test_alarm_control_panel.py Fix mqtt config validation error handling (#103210) 2023-11-02 10:57:00 +01:00
test_binary_sensor.py Do not fail MQTT setup if binary sensors configured via yaml can't be validated (#102300) 2023-10-19 18:15:21 +02:00
test_button.py Do not fail MQTT setup if buttons configured via yaml can't be validated (#102301) 2023-10-20 08:13:59 +02:00
test_camera.py
test_climate.py Fix mqtt config validation error handling (#103210) 2023-11-02 10:57:00 +01:00
test_common.py Do not fail MQTT setup if events or sensors configured via yaml can't be validated (#102309) 2023-10-20 12:09:52 +02:00
test_config_flow.py
test_cover.py Do not fail MQTT setup if covers configured via yaml can't be validated (#102304) 2023-10-20 10:51:42 +02:00
test_device_tracker.py
test_device_trigger.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_diagnostics.py
test_discovery.py Clean mqtt patch.dict config entries (#104449) 2023-11-24 10:56:17 +01:00
test_event.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
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_humidifier.py Do not fail MQTT setup if humidifiers configured via yaml can't be validated (#102312) 2023-10-19 23:29:49 +02:00
test_image.py Do not fail MQTT setup if images configured via yaml can't be validated (#102313) 2023-10-19 18:50:02 +02:00
test_init.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_lawn_mower.py
test_legacy_vacuum.py Do not fail MQTT setup if vacuum's configured via yaml can't be validated (#102325) 2023-10-19 20:11:09 +02:00
test_light.py Do not fail MQTT setup if lights configured via yaml can't be validated (#101649) 2023-10-19 17:34:43 +02:00
test_light_json.py Fix mqtt json light allows to set brightness value >255 (#104220) 2023-11-19 19:50:25 +01:00
test_light_template.py
test_lock.py
test_mixins.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_number.py Do not fail MQTT setup if numbers configured via yaml can't be validated (#102316) 2023-10-20 10:51:14 +02:00
test_scene.py
test_select.py
test_sensor.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_siren.py
test_state_vacuum.py
test_subscription.py
test_switch.py
test_tag.py Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
test_text.py Fix mqtt config validation error handling (#103210) 2023-11-02 10:57:00 +01:00
test_trigger.py
test_update.py
test_util.py Improve test creating mqtt certificate files (#102380) 2023-10-20 14:49:33 +02:00
test_water_heater.py