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
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures ( #93519 )
2023-05-25 13:45:19 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
J. Nick Koston
d0d4ab6056
Require a list of entity ids when fetching history ( #90992 )
2023-04-08 16:14:44 -10:00
J. Nick Koston
1c57339ec3
Refactor recorder tests to use recorder history API ( #89565 )
2023-03-11 21:51:16 -05:00
Erik Montnemery
9989a4787b
Fix recorder platform tests ( #88330 )
2023-02-17 08:22:15 -06:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
b9beed4624
Add type hints to integration tests (part 6) ( #87979 )
2023-02-13 09:45:11 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
51a9f65a01
Clean up unnecessary registry mocks from Core tests ( #87726 )
2023-02-08 13:28:44 -06:00
epenet
7a4d15a657
Add type hints to integration tests (f-g) ( #87700 )
2023-02-08 13:33:52 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Erik Montnemery
31a787558f
Ensure recorder test fixture is setup before hass fixture ( #80528 )
...
* Ensure recorder test fixture is setup before hass fixture
* Adjust more tests
2022-10-19 07:58:47 +02:00
Erik Montnemery
5f2b4001f3
Separate recorder database schema from other classes ( #72977 )
...
* Separate recorder database schema from other classes
* fix logbook imports
* migrate new tests
* few more
* last one
* fix merge
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 14:41:43 +02:00
Franck Nijhof
bfb47eb212
Final clean up of helpers accessed via hass ( #72032 )
...
* Final clean up of helpers accessed via hass
* Fix circular dep
* Fix import
2022-05-17 23:42:37 +03:00
Erik Montnemery
524920dd2e
Add 'toggle' device action to fans ( #71570 )
2022-05-09 13:49:35 +02:00
Erik Montnemery
28ebab9c5a
Simplify waiting for recorder in tests ( #70647 )
2022-04-25 12:04:47 +02:00