Erik Montnemery
6c1b44aae2
Improve docstrings in condition tests ( #161431 )
2026-01-23 15:28:41 -05:00
Erik Montnemery
deefcbcbe4
Remove stub_blueprint_populate test fixture ( #161288 )
2026-01-20 15:46:06 +01:00
Erik Montnemery
d1404e7905
Simplify logic in condition tests ( #161239 )
2026-01-20 10:39:47 +01:00
Erik Montnemery
9b9f94414b
Add shared helper to assert conditions are hidden behind labs flag ( #160941 )
2026-01-14 16:53:17 +00:00
Erik Montnemery
f01653633d
Add shared enable_experimental_triggers_conditions test fixture ( #160937 )
2026-01-14 16:01:06 +00:00
Erik Montnemery
1ace3e248f
Add create_target_condition test helper ( #160936 )
2026-01-14 16:19:41 +01:00
Erik Montnemery
892618d2ff
Add fan conditions ( #160832 )
...
Co-authored-by: Norbert Rittel <norbert@rittel.de >
2026-01-14 15:50:22 +01:00
Erik Montnemery
a902f3bb00
Improve comments in trigger and condition test helpers ( #160830 )
2026-01-14 11:42:32 +00:00
Erik Montnemery
1e6b0ba9ec
Allow passing trigger options to parametrize_trigger_states ( #160119 )
2026-01-05 10:44:31 +01:00
Abílio Costa
a35af9097b
Remove uneeded async_setup_component from trigger/condition tests ( #157873 )
2025-12-04 17:21:30 +00:00
Erik Montnemery
e63242e465
Add occupancy binary sensor triggers ( #157631 )
2025-12-02 16:37:02 +01:00
Erik Montnemery
4900d25ac8
Disable experimental triggers according to labs flag setting ( #157320 )
2025-11-26 14:27:05 +01:00
Erik Montnemery
8dd35cb129
Add entity triggers and conditions ( #156852 )
...
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
Co-authored-by: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com >
Co-authored-by: abmantis <amfcalt@gmail.com >
Co-authored-by: Bram Kragten <mail@bramkragten.nl >
Co-authored-by: Franck Nijhof <git@frenck.dev >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-11-25 17:52:20 +01:00
Matthias Alphart
63640af4d4
Update voluptuous-serialize to 2.7.0 ( #150822 )
2025-08-19 16:42:49 +02:00
Michael Hansen
2c0ed2cbfe
Add intent for setting fan speed ( #150576 )
2025-08-13 18:57:25 +02:00
epenet
7b1b229718
Standardize homeassistant imports in component tests (a-l) ( #136806 )
2025-01-29 10:00:45 +01:00
epenet
b43379be7d
Standardize helpers.xxx_registry imports ( #136688 )
...
Standardize registry imports
2025-01-28 08:48:34 +01:00
epenet
17afe1ae51
Remove deprecated supported features warning in FanEntity ( #132369 )
2024-12-05 20:32:59 +01:00
Robert Resch
0c5c09390c
Remove deprecated fan constants ( #131845 )
2024-11-28 16:56:04 +01:00
epenet
5608301178
Add missing return type in test __init__ methods ( #123932 )
...
* Add missing return type in test __init__ methods
* Adjust
2024-08-14 16:48:52 +02:00
G Johansson
ca4c617d4b
Add TURN_OFF/TURN_ON feature flags for fan ( #121447 )
2024-07-19 11:35:24 +02:00
epenet
07f095aa42
Use service_calls fixture in core platform tests [a-l] ( #120904 )
2024-07-01 19:27:50 +02:00
epenet
3e9d25f81d
Add missing argument type hints to component tests ( #119671 )
2024-06-14 09:26:46 +02:00
epenet
abb8c58b87
Fix consider-using-tuple pylint warnings in core tests ( #119463 )
2024-06-12 12:35:01 +02:00
epenet
b8e57f6174
Use relative imports in tests [a-i] ( #119280 )
2024-06-10 12:52:34 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 ( #113957 )
2024-06-08 17:59:08 +02:00
epenet
7e62061b9a
Improve typing for calls fixture in tests (a-l) ( #118349 )
...
* Improve typing for `calls` fixture in tests (a-l)
* More
* More
2024-05-29 09:06:48 +02:00
Sid
9bf87329da
Enable Ruff FLY002 rule ( #115112 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-04-12 09:04:16 +02:00
Sid
3efee10b95
Enable Ruff RUF013 ( #115333 )
2024-04-10 08:55:59 +02:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Jan-Philipp Benecke
247ee6e4f0
Address late review comments for fan entity component test ( #114425 )
...
* Address late review comments for fan entity component test
* Update tests/components/fan/common.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-03-29 10:18:57 +01:00
Jan-Philipp Benecke
ae635a5586
Use setup_test_component_platform helper for fan entity component tests instead of hass.components ( #114409 )
2024-03-29 07:32:41 +01:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl >
2024-03-19 09:01:07 +01:00
J. Nick Koston
bdede0e0da
Start script runs eagerly ( #113190 )
2024-03-14 16:53:26 -10:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
J. Nick Koston
3e7c44c612
Fan platform back-compat for custom components without FanEntityFeature ( #106607 )
2023-12-29 00:36:15 +01:00
Michael
d747b0891d
Add significant Change support for fan ( #105867 )
2023-12-27 12:57:30 +01:00
Robert Resch
c9c072ff3e
Deprecate deprecated fan constants ( #106111 )
2023-12-20 17:54:43 +01:00
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
Erik Montnemery
43ac77ca2f
Fix fan device actions ( #102797 )
2023-10-25 23:22:38 -04:00
Erik Montnemery
530611c44e
Use real devices in fan device action tests ( #102720 )
2023-10-24 21:40:24 +00:00
Erik Montnemery
3ed67f134f
Use real devices in fan device condition tests ( #102708 )
2023-10-24 23:32:56 +02:00
Erik Montnemery
51f6dac97f
Use real devices in fan device trigger tests ( #102686 )
2023-10-24 21:57:57 +02:00
Erik Montnemery
c4589ad4e5
Use entity registry id in fan device conditions ( #95255 )
2023-06-26 20:29:52 +02:00
Erik Montnemery
a338e7e242
Use entity registry id in toggle_entity device automations ( #94995 )
...
* Use entity registry id in toggle_entity device automations
* Update tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2023-06-26 09:59:01 +02:00
Erik Montnemery
6a29ed8caa
Replace assert_lists_same with pytest_unordered in integrations a-f ( #94900 )
2023-06-20 20:22:31 +02:00
Erik Montnemery
9a3077d64a
Always setup demo platforms with device support from config entry ( #94586 )
...
* Always setup demo platforms with device support from config entry
* Adjust test fixutres
* Update tests depending on the demo integration
2023-06-14 16:50:35 +02:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ( #93568 )
...
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00