epenet
26d56b8218
Use DOMAIN constant in test (async_setup_component o-z) ( #173018 )
2026-06-06 12:14:46 -07:00
Max Michels
fea673d93a
Replace duplicate constants with homeassistant.const imports ( #171639 )
2026-05-21 00:24:05 +02:00
Franck Nijhof
833ff982d0
Fix line length violations in tests/components t-z ( #170994 )
2026-05-17 17:12:29 -04:00
Erik Montnemery
05eeb6a1bc
Enable duration support in all entity conditions ( #169532 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: frenck <195327+frenck@users.noreply.github.com >
2026-04-30 18:13:06 +02:00
epenet
88525955ce
Remove import annotations from tests ( #169527 )
2026-04-30 09:30:46 +02:00
Erik Montnemery
eb2217cfa6
Use modern condition API in condition tests ( #169354 )
2026-04-28 12:04:29 +02:00
Erik Montnemery
aad93fd577
Add tests asserting condition features ( #168881 )
2026-04-24 18:41:39 +02:00
Erik Montnemery
1e6c832c9a
Add tests asserting trigger features ( #168407 )
2026-04-17 08:37:47 +02:00
Erik Montnemery
f84398eb9c
Speed up trigger tests ( #166522 )
2026-03-26 00:51:14 +01:00
Michael
9693ca39d1
Also listen for input_text in text.changed trigger ( #165161 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-24 13:27:44 +01:00
Erik Montnemery
66b5a3755c
Add text conditions ( #165918 )
2026-03-23 20:41:48 +01:00
Erik Montnemery
ea7558c0ad
Improve naming in condition and trigger test helpers ( #165847 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-03-18 08:44:14 +01:00
Erik Montnemery
6992a3c72b
Adjust name and docstring of some trigger tests ( #165846 )
2026-03-17 22:11:32 +01:00
Erik Montnemery
fdfe87de4c
Move condition/trigger test helpers to test.components.common ( #165777 )
2026-03-17 11:08:38 +01:00
Erik Montnemery
4769a769e0
Use return value from target_entities directly in all trigger tests ( #165761 )
2026-03-17 09:55:08 +01:00
Erik Montnemery
9bbd9d8bcd
Deduplicate trigger tests checking labs flag ( #165760 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-03-17 08:19:10 +01:00
Erik Montnemery
deefcbcbe4
Remove stub_blueprint_populate test fixture ( #161288 )
2026-01-20 15:46:06 +01:00
Erik Montnemery
f01653633d
Add shared enable_experimental_triggers_conditions test fixture ( #160937 )
2026-01-14 16:01:06 +00:00
Erik Montnemery
a902f3bb00
Improve comments in trigger and condition test helpers ( #160830 )
2026-01-14 11:42:32 +00:00
Abílio Costa
0a676b5812
Remove alarm panel test from text tests ( #158743 )
2025-12-12 02:18:40 +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
epenet
899fb091fc
Simplify access to hass in service calls ( #133062 )
2024-12-13 09:31:21 +01:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com >
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com >
2024-06-12 15:50:27 +02:00
epenet
2e3c3789d3
Use relative imports in tests [s-z] ( #119283 )
2024-06-10 13:33:15 +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
3fd24989c6
Use setup_test_component_platform helper for text entity component tests instead of hass.components ( #114400 )
2024-03-28 21:08:25 +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
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Erik Montnemery
9047dcf242
Use real devices in text device action tests ( #102728 )
2023-10-25 06:11:06 +02:00
Erik Montnemery
179e1da164
Use entity registry id in text device actions ( #95398 )
2023-06-27 20:24:40 +02:00
Erik Montnemery
6183a36fce
Replace assert_lists_same with pytest_unordered in integrations t-z ( #94903 )
2023-06-20 20:23:49 +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
J. Nick Koston
fba826ae9e
Migrate restore_state helper to use registry loading pattern ( #93773 )
...
* Migrate restore_state helper to use registry loading pattern
As more entities have started using restore_state over time, it
has become a startup bottleneck as each entity being added is
creating a task to load restore state data that is already loaded
since it is a singleton
We now use the same pattern as the registry helpers
* fix refactoring error -- guess I am tired
* fixes
* fix tests
* fix more
* fix more
* fix zha tests
* fix zha tests
* comments
* fix error
* add missing coverage
* s/DATA_RESTORE_STATE_TASK/DATA_RESTORE_STATE/g
2023-05-30 20:48:17 -05: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
epenet
88cfbf6a34
Add type hints to integration tests (part 22) ( #88234 )
2023-02-16 14:08:03 +01: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
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
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Raman Gupta
1453308bc4
Add reproduce state support to text platform ( #82772 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl >
2022-11-29 10:27:05 +01:00
Raman Gupta
258b9fe663
Support restoring TextEntity native_value ( #82770 )
2022-11-29 10:09:41 +01:00