1
mirror of https://github.com/home-assistant/core synced 2024-09-12 15:16:21 +02:00
Go to file
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
.devcontainer Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
.github Add proj-dev dependency to our wheels builder (#104711) 2023-11-29 13:15:37 +01:00
.vscode Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
homeassistant Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560) 2023-11-29 13:56:51 +01:00
machine Add Home Assistant Green (#98171) 2023-08-10 15:00:43 +02:00
pylint Change todo move API to reference previous uid (#102795) 2023-10-26 18:43:10 +02:00
rootfs Stop the Home Assistant Core container by default (#101105) 2023-09-30 10:43:07 +02:00
script Autogenerate Dockerfile (#104669) 2023-11-29 11:26:50 +01:00
tests Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560) 2023-11-29 13:56:51 +01:00
.core_files.yaml Add todo to core files (#103102) 2023-10-31 07:55:03 +01:00
.coveragerc Remove eq3btsmart integration (#94698) 2023-11-28 09:11:32 +01:00
.dockerignore Not to Tox (#76582) 2022-11-23 14:40:37 +01:00
.gitattributes Ensure .pcm binary files do not have line endings changed (#91881) 2023-04-22 22:22:30 -04:00
.gitignore Remove dev API docs from repository (#102274) 2023-10-20 08:10:46 +02:00
.hadolint.yaml Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
.pre-commit-config.yaml Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
.prettierignore Add tests for yaml syntax errors (#103908) 2023-11-13 14:04:58 +01:00
.strict-typing Add Linear Garage Door integration (#91436) 2023-11-22 09:35:31 +01:00
.yamllint Add tests for yaml syntax errors (#103908) 2023-11-13 14:04:58 +01:00
build.yaml Update base image to 2023.10.1 (#102568) 2023-10-23 10:48:05 +02:00
CLA.md
CODE_OF_CONDUCT.md Update URLs forwarding to HA blog posts (#91698) 2023-04-20 20:55:13 +02:00
codecov.yml Add recorder platform to required test category (#86704) 2023-01-26 11:03:56 +01:00
CODEOWNERS Add Devialet integration (#86551) 2023-11-28 13:56:17 +01:00
CONTRIBUTING.md
Dockerfile Autogenerate Dockerfile (#104669) 2023-11-29 11:26:50 +01:00
Dockerfile.dev Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
LICENSE.md
MANIFEST.in Move remaining keys to setup.cfg (#65154) 2022-01-28 20:18:09 -08:00
mypy.ini Add Linear Garage Door integration (#91436) 2023-11-22 09:35:31 +01:00
pyproject.toml Update cryptography to 41.0.7 (#104632) 2023-11-28 12:09:12 +01:00
README.rst Update URL in readme (#94282) 2023-06-09 09:24:53 +02:00
requirements_all.txt Update frontend to 20231129.0 (#104710) 2023-11-29 13:37:23 +01:00
requirements_test_all.txt Update frontend to 20231129.0 (#104710) 2023-11-29 13:37:23 +01:00
requirements_test_pre_commit.txt Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
requirements_test.txt Update mypy to 1.7.1 (#104434) 2023-11-24 10:08:48 +01:00
requirements.txt Update cryptography to 41.0.7 (#104632) 2023-11-28 12:09:12 +01:00

Home Assistant |Chat Status|
=================================================================================

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://demo.home-assistant.io>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-integrations|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://www.home-assistant.io/join-chat/
.. |screenshot-states| image:: https://raw.githubusercontent.com/home-assistant/core/master/docs/screenshots.png
   :target: https://demo.home-assistant.io
.. |screenshot-integrations| image:: https://raw.githubusercontent.com/home-assistant/core/dev/docs/screenshot-integrations.png
   :target: https://home-assistant.io/integrations/