Paulus Schoutsen
1936aeccb9
Add a test for async_converse ( #124697 )
2024-08-27 11:01:00 -05:00
Andrii Mitnovych
254aa8c9ea
Add entity deduplication by assist device ID in conversation agent ( #123957 )
...
* Add entities deduplication by assist device ID in default conversation agent
* Updated test.
2024-08-19 15:00:23 -05:00
Joost Lekkerkerker
e8d7eb05ae
Delete unused snapshots ( #123656 )
...
* Delete unused snapshots
* Delete unused snapshots
2024-08-12 13:28:09 +02:00
Allen Porter
8d0e998e54
Improve conversation agent tracing to help with eval and data collection ( #122542 )
2024-07-31 14:38:44 +02:00
Allen Porter
f14471112d
Improve LLM tool quality by more clearly specifying device_class slots ( #122723 )
...
* Limit intent / llm API device_class slots to only necessary services and limited set of values
* Fix ruff errors
* Run ruff format
* Fix typing and improve output schema
* Fix schema and improve flattening
* Revert conftest
* Revert recorder
* Fix ruff format errors
* Update using latest version of voluptuous
2024-07-31 14:36:02 +02:00
epenet
075550b7ba
Use HOMEASSISTANT_DOMAIN alias for core DOMAIN in tests ( #122762 )
2024-07-29 12:51:12 +02:00
Marc Mueller
a6068dcdf2
Update import locations in tests ( #122216 )
2024-07-20 11:16:04 +02:00
Michael Hansen
fa0a5451b9
Split up tests to avoid CI timeouts ( #122096 )
2024-07-17 20:32:26 +02:00
Michael Hansen
417abda649
Add HassGetCurrentDate and HassGetCurrentTime intents ( #121707 )
2024-07-11 00:17:04 +02:00
Paulus Schoutsen
01861cd240
Ensure we prepare conversation pipeline when speech-to-text starts ( #114665 )
...
* Ensure we prepare conversation pipeline when speech-to-text starts
* Add lock around recognize
* Update homeassistant/components/conversation/default_agent.py
* Add lock around load intents
2024-07-09 09:58:52 -05:00
Michael Hansen
4498bf9ec4
Remove language lock from default agent and move around tests ( #121531 )
...
* Remove language lock
* Remove unsub for change events
* Remove redundant check
* Simplify intent loading
* Cache intent loading error
* Revert "Remove unsub for change events"
This reverts commit 575266abcd
.
* guard instead of assert
* Some more cleanup
* No need to warn during prepare
* Some more cleanup
* Add more timing logs
* Split up tests and rely less on http
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-07-09 16:05:43 +02:00
Jan Bouwhuis
8a28cbe9e2
Wait for conversation test init ( #121464 )
...
* Wait for conversation test init
* typo
2024-07-07 22:24:20 +02:00
Paulus Schoutsen
daaf35d4c1
Simplify conversation tests ( #121060 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-07-05 09:46:36 +02:00
Paulus Schoutsen
a885bdfe76
Add conversation supported feature CONTROL ( #121036 )
2024-07-03 14:30:51 +02:00
epenet
e5c7ff6a5b
Use service_calls fixture in conversation tests ( #120906 )
2024-07-01 17:57:40 +02:00
Michael Hansen
02b142fbde
Bump intents to 2024.6.26 ( #120584 )
...
Bump intents
2024-06-26 11:13:01 -05:00
Michael Hansen
d3ceaef098
Allow timer management from any device ( #120440 )
2024-06-26 09:06:56 +02:00
Michael Hansen
46dcf1dc44
Prioritize custom intents over builtin ( #120358 )
2024-06-24 20:57:56 +02:00
epenet
015bc0e172
Use HassKey in homeassistant integration ( #120332 )
2024-06-24 16:37:07 +02:00
epenet
b4d0de9c0f
Improve type hints in conversation tests ( #120306 )
2024-06-24 13:41:55 +02:00
Michael Hansen
8aed04cd3c
Bump intents to 2024.6.21 ( #120106 )
2024-06-21 18:19:52 +02:00
epenet
904cf26d31
Add MockToggleEntity type hints in tests ( #120075 )
2024-06-21 12:32:03 +02:00
Michael Hansen
bca8958d4b
Prioritize literal text with name slots in sentence matching ( #118900 )
...
Prioritize literal text with name slots
2024-06-06 14:20:34 -04:00
Michael Hansen
0257aa4839
Clean up exposed domains ( #118753 )
...
* Remove lock and script
* Add media player
* Fix tests
2024-06-03 21:26:40 -05:00
epenet
5d594a509c
Add type hints for MockAgent in conversation tests ( #118701 )
2024-06-03 17:44:13 +02:00
epenet
1fbf93fd36
Add SnapshotAssertion type hints in tests ( #118371 )
2024-05-29 14:11:58 +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
Michael Hansen
d223e1f2ac
Add Conversation command to timers ( #118325 )
...
* Add Assist command to timers
* Rename to conversation_command. Execute in timer code.
* Make agent_id optional
* Fix arg
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-05-28 20:33:31 -05:00
Michael Hansen
106cb4cfb7
Bump intents and add tests for new error messages ( #118317 )
...
* Add new error keys
* Bump intents and test new error messages
* Fix response text
2024-05-28 12:24:24 -04:00
Allen Porter
89e2c57da6
Add conversation agent debug tracing ( #118124 )
...
* Add debug tracing for conversation agents
* Minor cleanup
2024-05-25 14:16:51 -04:00
Thomas55555
528d67ee06
Remove unused snapshots [a-f] ( #117999 )
2024-05-24 08:28:04 +02:00
Michael Hansen
daee3d8db0
Don't prioritize "name" slot if it's a wildcard in default conversation agent ( #117518 )
...
* Don't prioritize "name" slot if it's a wildcard
* Fix typing error
2024-05-15 22:23:24 -04:00
Michael Hansen
641754e0bb
Pass device_id to intent handlers ( #117442 )
2024-05-14 13:59:49 -05:00
Michael Hansen
7923471b94
Intent target matching and media player enhancements ( #115445 )
...
* Working
* Tests are passing
* Fix climate
* Requested changes from review
2024-05-07 22:01:03 -04:00
Michael Hansen
1c2499b03a
Add "conversation" key to translations ( #114887 )
...
* Use translated trigger response
* Use conversation key instead
2024-04-04 14:45:27 -05:00
J. Nick Koston
aedfd6c983
Add index for floor/label to the area registry ( #114777 )
2024-04-03 21:04:26 -10:00
Paulus Schoutsen
d2e4f5f36e
Add conversation entity ( #114518 )
...
* Default agent as entity
* Migrate constant to point at new value
* Fix tests
* Fix more tests
* Move assist pipeline back to cloud after dependenceis
2024-04-01 21:34:25 -04:00
Paulus Schoutsen
f01235ef74
Re-organize conversation integration ( #114502 )
...
* Re-organize conversation integration
* Clean up 2 more imports
* Re-export models
* Fix imports
* Uno mas
* Rename agents to models
* Fix cast test that i broke?
* Just blocking till I'm done
* Wrong place
2024-03-31 00:05:25 -04:00
Michael Hansen
d23b22b566
Add initial support for floors to intents ( #114456 )
...
* Add initial support for floors to intents
* Fix climate intent
* More tests
* No return value
* Add requested changes
* Reuse event handler
2024-03-30 16:59:20 -04:00
Sid
dc557fca1e
Refactor conversation mock_agent ( #114428 )
...
* Refactor conversation mock_agent
* Address review comments
2024-03-29 14:38:58 +01:00
Michael Hansen
e4d2985589
Bump intents to 2024.3.27 ( #114312 )
2024-03-27 16:43:15 +01:00
Jan-Philipp Benecke
9580adfde9
Use new `setup_test_component_platform` helper instead of test fixture for light platform ( #114200 )
2024-03-26 00:17:16 +01:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Jan-Philipp Benecke
cd0c9e1c4f
Remove deprecated `hass.components` from conversation tests and use light setup fixture ( #114012 )
2024-03-22 17:52:10 +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
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
Michael Hansen
556855f54e
Add device_id to sentence trigger and external conversation APIs ( #113094 )
...
* Add device_id to sentence trigger and external conversation APIs
* Remove device_id from external API
* Update tests/components/conversation/snapshots/test_init.ambr
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-03-12 08:50:06 -04:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
Michael Hansen
0d0b64d351
Move HassSetPosition to homeassistant domain ( #111867 )
...
* Move HassSetPosition to homeassistant domain
* Add test for unsupported domain with HassSetPosition
* Split service intent handler
* cleanup
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-02-29 21:53:52 -05:00