1
mirror of https://github.com/home-assistant/core synced 2024-09-12 15:16:21 +02:00
ha-core/homeassistant/components/bond
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 Update mypy to 1.7.0 (#103800) 2023-11-11 23:31:04 +01:00
button.py
config_flow.py
const.py
cover.py
diagnostics.py
entity.py Make bond BPUP callback a HassJob (#99470) 2023-09-03 12:39:49 -05: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
light.py Fix aiohttp code DeprecationWarnings (#97621) 2023-08-02 20:28:18 +02:00
manifest.json Bump bond-async to 0.2.1 (#96504) 2023-07-13 13:20:24 -10:00
models.py
services.yaml Migrate integration services (B-D) to support translations (#96363) 2023-07-11 23:06:32 +02:00
strings.json Balboa, Bond, Bosch: add host field description (#104695) 2023-11-29 11:06:50 +01:00
switch.py Fix aiohttp code DeprecationWarnings (#97621) 2023-08-02 20:28:18 +02:00
utils.py Rename gather_with_concurrency to gather_with_limited_concurrency (#102241) 2023-10-19 15:08:52 +02:00