hass-core/homeassistant/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 Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
air_quality.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
alarm_control_panel.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
binary_sensor.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
button.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
calendar.py Update calendar handle state updates at start/end of active/upcoming event (#98037) 2023-08-25 18:32:20 -07:00
camera.py Always setup demo platforms with device support from config entry (#94586) 2023-06-14 16:50:35 +02:00
climate.py Use walrus assignment i demo climate climate.set_temperature (#101248) 2023-10-06 21:32:06 +02:00
config_flow.py
const.py
cover.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
date.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
datetime.py Python 3.10 support cleanups (#98640) 2023-08-21 19:14:07 +02:00
demo_0.jpg
demo_0.png
demo_1.jpg
demo_1.png
demo_2.jpg
demo_2.png
demo_3.jpg
demo_3.png
device_tracker.py
event.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04: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
geo_location.py Fix lingering timer in demo geo_location (#92514) 2023-05-04 19:02:52 +02:00
humidifier.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
image_processing.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
light.py Remove unnnecessary pylint configs from components/[a-d]* (#98911) 2023-08-24 00:54:02 +02:00
lock.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
mailbox.py Update mypy to 1.4.0 (#94987) 2023-06-21 16:12:51 +02:00
manifest.json
media_player.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
notify.py
number.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
remote.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
select.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
sensor.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
services.yaml Migrate integration services (E-F) to support translations (#96367) 2023-07-11 23:57:29 +02:00
siren.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
strings.json Add event entity (#96797) 2023-07-21 12:16:35 +02:00
stt.py Remove legacy STT provider from the demo integration (#94585) 2023-06-14 14:55:50 +02:00
switch.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
text.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
time.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
tts.mp3
tts.py Standardize spelling of TTS and STT (#93857) 2023-05-31 11:00:19 -04:00
update.py Move DeviceInfo from entity to device registry (#98149) 2023-08-10 22:04:26 -04:00
vacuum.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
water_heater.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00
weather.py Remove setup_platform for demo (#100867) 2023-10-15 23:12:41 +02:00