* 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> |
||
---|---|---|
.. | ||
fixtures | ||
scripts | ||
__init__.py | ||
common.py | ||
conftest.py | ||
test_api.py | ||
test_binary_sensor.py | ||
test_button.py | ||
test_climate.py | ||
test_config_flow.py | ||
test_config_validation.py | ||
test_cover.py | ||
test_device_action.py | ||
test_device_condition.py | ||
test_device_trigger.py | ||
test_diagnostics.py | ||
test_discovery.py | ||
test_event.py | ||
test_events.py | ||
test_fan.py | ||
test_helpers.py | ||
test_humidifier.py | ||
test_init.py | ||
test_light.py | ||
test_lock.py | ||
test_logbook.py | ||
test_migrate.py | ||
test_number.py | ||
test_repairs.py | ||
test_select.py | ||
test_sensor.py | ||
test_services.py | ||
test_siren.py | ||
test_switch.py | ||
test_trigger.py | ||
test_update.py |