Erik Montnemery
f01653633d
Add shared enable_experimental_triggers_conditions test fixture ( #160937 )
2026-01-14 16:01:06 +00:00
Abílio Costa
4163ecd833
Improve typing for get_x_for_target commands ( #159279 )
2025-12-18 16:42:40 +00:00
Abílio Costa
7eecdc87fd
Add lookup caching to get_x_for_target ( #157888 )
2025-12-16 12:17:58 +00:00
Abílio Costa
c058810461
Cache flattened service descriptions in websocket api ( #157510 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2025-12-04 16:05:49 +00:00
Abílio Costa
bf7b96622c
Correct websocket commands test name ( #157870 )
2025-12-04 11:14:34 +00:00
Abílio Costa
f758cfa82f
Add get_conditions_for_target websocket command ( #157344 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2025-11-26 14:08:56 +00:00
Erik Montnemery
4900d25ac8
Disable experimental triggers according to labs flag setting ( #157320 )
2025-11-26 14:27:05 +01:00
Abílio Costa
c2b7a63dd9
Add get_services_for_target websocket command ( #157334 )
2025-11-26 12:30:51 +00:00
Abílio Costa
a6aab088fb
Add get_triggers_for_target websocket command ( #156778 )
2025-11-26 11:05:03 +01:00
Jan Bouwhuis
f537204d22
Fix websocket_api timeout test ( #157204 )
2025-11-24 20:12:32 -06:00
Abílio Costa
0f12a40eb2
Fix typing in websocket_api test ( #156964 )
2025-11-21 16:29:19 +01:00
Erik Montnemery
a020a32d8a
Remove translations from WS get_services and REST /api/services ( #147120 )
2025-10-23 17:26:33 +02:00
Abílio Costa
2abc197dcd
Add extract_from_target websocket command ( #150124 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com >
2025-10-14 16:16:00 +02:00
Marc Mueller
1e5f5f4ad3
Enable pylint consider-math-not-float check ( #154338 )
2025-10-13 21:14:57 +02:00
Erik Montnemery
d66da0c10d
Respect filtering of WS subscribe_entities when there are unserializalizable states ( #153262 )
2025-10-02 22:20:45 +02:00
Erik Montnemery
ec503618c3
Handle errors in WS manifest/list ( #153256 )
2025-09-30 15:12:41 +02:00
epenet
de42ac14ac
Drop unused hass argument from internal helper ( #152733 )
2025-09-22 09:56:52 +02:00
Erik Montnemery
48091e5995
Improve test of WS command get_services ( #150901 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-19 17:47:12 +02:00
Artur Pragacz
06130219b4
Use relative condition keys ( #150021 )
2025-08-06 17:20:30 +01:00
Artur Pragacz
53c9c42148
Use relative trigger keys ( #149846 )
2025-08-04 23:01:40 +01:00
Erik Montnemery
510fd09163
Allow core integrations to describe their conditions ( #147529 )
...
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
2025-07-04 16:03:42 +02:00
Erik Montnemery
1fb587bf03
Allow core integrations to describe their triggers ( #147075 )
...
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
2025-06-25 17:35:15 +01:00
Erik Montnemery
2bfb09cb11
Improve test of WS command get_services cache handling ( #147134 )
2025-06-23 13:29:29 +02:00
Martin Hjelmare
f295d72cd9
Fix error stack trace for HomeAssistantError in websocket service call ( #145699 )
...
* Add test
* Fix error stack trace for HomeAssistantError in websocket service call
2025-05-27 12:54:57 +02:00
Erik Montnemery
0128d85999
Move sun conditions to the sun integration ( #144742 )
2025-05-12 23:03:37 +01:00
Erik Montnemery
0105332476
Add WS command integration/wait ( #142040 )
...
* Add WS command integration/wait
* Add test
* Update homeassistant/components/websocket_api/commands.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Use helper setup.async_wait_component
* Add onboarding view
* Revert "Add onboarding view"
This reverts commit df3a1a0580 .
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-04-11 16:09:15 +02:00
Erik Montnemery
2427b77363
Use send_json_auto_id in websocket_api tests ( #141994 )
2025-04-01 14:31:49 +02:00
Erik Montnemery
51c09c2aa4
Add test fixture ignore_translations_for_mock_domains ( #139235 )
...
* Add test fixture ignore_translations_for_mock_domains
* Fix fixture
* Avoid unnecessary attempt to get integration
* Really fix fixture
* Add forgotten parameter
* Address review comment
2025-02-25 20:10:29 +01:00
Erik Montnemery
b662d32e44
Fix bug in check_translations fixture ( #139206 )
...
* Fix bug in check_translations fixture
* Fix check for ignored translation errors
* Fix websocket_api test
2025-02-24 22:19:18 +01:00
Abílio Costa
3fb70316da
Fix error messaging for cascading service calls ( #136966 )
2025-01-31 11:10:57 +01:00
epenet
2b939ce6ec
Add translation checks for service exceptions ( #131266 )
...
* Add translation checks for service exceptions
* Adjust
* Remove invalid comment
2024-11-27 08:46:45 +01:00
Joost Lekkerkerker
33d83e43de
Update trigger validation message ( #126749 )
2024-09-25 15:33:03 +02:00
Franck Nijhof
9dfabc3fb7
Adjust automation to plural triggers/conditions/actions keys ( #123823 )
...
* Adjust automation to plural triggers/conditions/actions keys
* Fix some tests
* Adjust websocket tests
* Fix search tests
* Convert blueprint and blueprint inputs to modern schema
* Pass schema when creating Blueprint object
* Update tests
* Adjust websocket api
---------
Co-authored-by: Joostlek <joostlek@outlook.com >
Co-authored-by: Erik <erik@montnemery.com >
2024-09-24 20:03:23 +02:00
J. Nick Koston
d8161c431f
Add support for using an entityfilter to subscribe_entities ( #124641 )
...
* Add support for using an entityfilter to subscribe_entities
* filter init
* fix
* coverage
2024-08-27 11:17:05 +02: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
J. Nick Koston
1879db9f8f
Revert to using call_soon for event triggers and state changed event trackers ( #122735 )
2024-07-29 11:45:39 +02:00
G Johansson
9c5879656c
Remove legacy list event calendar service ( #118663 )
2024-06-21 11:18:51 +02:00
Erik Montnemery
8099ea8817
Improve WS command validate_config ( #118864 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
Co-authored-by: Robert Resch <robert@resch.dev >
2024-06-05 18:53:44 +02:00
Jan Bouwhuis
3299bc5ddc
Translate service validation errors ( #115024 )
...
* Move service validation error message to translation cache
* Fix test
* Revert unrelated change
* Address review comments
* Improve error message
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-04-18 14:36:03 +02:00
Robert Resch
348e1df949
Add strict connection ( #112387 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-04-12 14:47:46 +02:00
epenet
9204ccfa17
Use is in ConfigEntryState enum comparison in tests (N-Z) ( #114926 )
2024-04-05 17:37:00 +02: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
c615b52840
Refactor integration startup time to show wall clock time ( #113707 )
...
* Refactor setup time tracking to exclude time waiting on other operations
We now exclude the import time and th time waiting on
base platforms to setup from the setup times
* tweak
* tweak
* tweak
* tweak
* adjust
* fixes
* fixes
* preen
* preen
* tweak
* tweak
* adjust
* tweak
* reduce
* do not count integrtion platforms against their parent integration
* handle legacy tts platforms
* stt as well
* one more wait
* use the same pattern in all the legacy
* fix tts and stt legacy
* fix
* fix
* reduce
* preen
* entity comp does not wait for platforms
* scene blocks as well
* fix test
* test fixes
* coverage
* coverage
* coverage
* fix test
* Update tests/test_setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Update tests/test_setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Update homeassistant/setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* strip
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* remove complexity
* Apply suggestions from code review
* no longer works that way
* fixes
* fixes
* fixes
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-03-18 21:45:34 -04:00
Joost Lekkerkerker
49fc59548a
Improve lists in integrations [V-W] ( #113252 )
2024-03-13 19:38:04 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
J. Nick Koston
def6c5c21c
Refactor integration startup time tracking to reduce overhead ( #110136 )
...
* Refactor integration startup time tracking to reduce overhead
- Use monotonic time for watching integration startup time as it avoids incorrect values if time moves backwards because of ntp during startup and reduces many time conversions since we want durations in seconds and not local time
- Use loop scheduling instead of a task
- Moves all the dispatcher logic into the new _WatchPendingSetups
* websocket as well
* tweaks
* simplify logic
* preserve logic
* preserve logic
* lint
* adjust
2024-02-17 21:47:55 -05:00
J. Nick Koston
f6d4617c7a
Avoid directly changing config entry state in tests (part 2) ( #110115 )
...
followup to #110048 for more places
2024-02-10 07:20:15 +01:00
J. Nick Koston
2eea658fd8
Convert getting and removing access tokens to normal functions ( #108670 )
2024-01-22 20:51:33 -10:00
J. Nick Koston
52b5d2e370
Avoid json encoder default fallback when serializing config ( #108360 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2024-01-19 19:22:17 -10:00
J. Nick Koston
6ada825805
Use faster is_admin check for websocket state and event subscriptions ( #107621 )
2024-01-13 10:42:41 -10:00