hass-core/tests/testing_config/custom_components/test
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
..
translations Rename translations dir for integrations (#34494) 2020-04-21 16:11:05 -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
alarm_control_panel.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
binary_sensor.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
button.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
cover.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
date.py Add date platform (#81948) 2023-04-30 20:34:57 +02:00
datetime.py Python 3.10 support cleanups (#98640) 2023-08-21 19:14:07 +02:00
device_tracker.py Convert device_sun_light_trigger test fixture to async (#89578) 2023-03-12 14:48:46 +01:00
event.py Add event entity (#96797) 2023-07-21 12:16:35 +02:00
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
image_processing.py Update integrations t-z to override extra_state_attributes() (#47760) 2021-03-11 20:16:26 +01:00
light.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
lock.py Lock entity options (#88139) 2023-05-08 22:06:11 +02:00
manifest.json Block custom integrations with missing or invalid version (#49916) 2021-05-17 15:48:41 +02:00
number.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
remote.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
select.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
sensor.py Move sensor rounding to frontend (#87330) 2023-02-04 14:54:36 -05:00
switch.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
text.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
time.py Add time platform (#81949) 2023-04-30 22:33:51 +02:00
update.py Upgrade ruff to 0.0.285 (#98647) 2023-08-19 08:17:17 -04:00
weather.py Cleanup weather test (#103090) 2023-11-03 05:53:38 +01:00