hass-core/tests/components/demo
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 Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_button.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_calendar.py
test_camera.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_climate.py Fix ignored argument in service call for demo climate (#101137) 2023-09-29 23:06:41 -04:00
test_cover.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_date.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_datetime.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02: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_geo_location.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_humidifier.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
test_init.py Add type hints to integration tests (part 4) (#87848) 2023-02-11 08:26:13 +01:00
test_light.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_lock.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
test_media_player.py Add support for family to aiohttp session helper (#102702) 2023-10-24 18:40:39 -05:00
test_notify.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_number.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_remote.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
test_select.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_sensor.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
test_siren.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
test_stt.py Remove legacy STT provider from the demo integration (#94585) 2023-06-14 14:55:50 +02:00
test_switch.py Always setup demo platforms with device support from config entry (#94601) 2023-06-14 21:03:07 +02:00
test_text.py Always setup demo platforms with device support from config entry (#94601) 2023-06-14 21:03:07 +02:00
test_time.py Always setup demo platforms with device support from config entry (#94601) 2023-06-14 21:03:07 +02:00
test_update.py Always setup demo platforms with device support from config entry (#94601) 2023-06-14 21:03:07 +02:00
test_vacuum.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
test_water_heater.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
test_weather.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00