hass-core/tests/testing_config
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
..
blueprints Prevent deleting blueprints which are in use (#78444) 2022-09-14 16:47:08 +02:00
custom_components Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560) 2023-11-29 13:56:51 +01:00
custom_sentences/en Load custom sentences from config directory (#85558) 2023-01-09 16:48:59 -06:00
custom_templates Rename custom_jinja to custom_templates (#90473) 2023-03-29 21:58:25 +02:00
media Quote media_source paths (#49054) 2021-04-12 18:32:12 +02:00
notify Rewrite smtp Unittest Tests To Pytest Style (#41720) 2020-10-16 13:55:12 +02:00
.remember_the_milk.conf Use hue/sat as internal light color interface (#11288) 2018-03-18 15:00:29 -07:00
__init__.py Load requirements and dependencies from manifests. Fallback to current REQUIREMENTS and DEPENDENCIES (#22717) 2019-04-11 01:26:36 -07:00
kira_codes.yaml Add Kira component to sensor and remote platforms (#7479) 2017-05-12 21:12:47 -07:00