J. Nick Koston
6bdc5be433
Bump aiohttp to 3.10.0b1 ( #122409 )
2024-07-23 12:10:22 -05:00
Marc Mueller
da6a7ebd42
Update clientsession socket family typing ( #122464 )
2024-07-23 09:04:09 -05:00
Marc Mueller
5727f30026
Changes for aiohttp 3.10.0 ( #122463 )
2024-07-23 15:37:26 +02:00
Robert Resch
545514c5cd
Add created_at/modified_at to category registry ( #122454 )
2024-07-23 14:39:38 +02:00
Erik Montnemery
92acfc1464
Indicate database migration in /api/core/state response ( #122445 )
...
* Indicate database migration in /api/core/state response
* Change API response according to review comment
* Adjust API response
* Update test
* Add test
2024-07-23 14:13:08 +02:00
Robert Resch
0d765a27c9
Add created_at/modified_at to entity registry ( #122444 )
2024-07-23 13:12:29 +02:00
Erik Montnemery
42716723e6
Register WS command recorder/info early ( #122425 )
2024-07-22 16:26:52 -05:00
Erik Montnemery
d3df903d1e
Make device registry migration unconditional ( #122414 )
2024-07-22 21:37:47 +02:00
Erik Montnemery
db6704271c
Avoid repeated calls to utc_from_timestamp(0).isoformat() when migrating ( #122413 )
2024-07-22 21:36:36 +02:00
Robert Resch
4c853803f1
Add created_at/modified_at to device registry ( #122369 )
2024-07-22 19:15:23 +02:00
Robert Resch
243a68fb1f
Frontend wants a timestamp for the created_at/modified_at attributes ( #122377 )
2024-07-22 14:10:16 +02:00
Denis Shulyaka
064d7261b4
Ensure script llm tool name does not start with a digit ( #122349 )
...
* Ensure script tool name does not start with a digit
* Fix test name
2024-07-22 11:11:09 +02:00
J. Nick Koston
a8cbfe5159
Make TemplateStateBase.entity_id a cached_property ( #122279 )
2024-07-21 07:49:59 -05:00
Josef Zweck
f006716173
Add `async_setup` method to `DataUpdateCoordinator` ( #116677 )
...
* init
* Update homeassistant/helpers/update_coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* fix typo, ruff
* consistency with rest, test
* pylint suppression
* ruff
* ruff
* switch to one test
* add last exc
* add tests for auth & Entry Errors
* move exceptions to correct test
* Update update_coordinator.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* test setup call
* simplify
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-07-19 14:24:25 +02:00
Robert Resch
10c084c6e0
Add created_at/modified_at to label registry ( #122078 )
2024-07-17 16:36:14 +02:00
Erik Montnemery
efb7bede40
Enable strict typing on script helper ( #122075 )
2024-07-17 13:51:59 +02:00
Robert Resch
a0f91d27a3
Add created_at/modified_at to floor registry ( #122071 )
2024-07-17 13:18:26 +02:00
Erik Montnemery
385f5be7e8
Remove dead code from script helper ( #122074 )
2024-07-17 13:16:57 +02:00
Robert Resch
35f84f32d6
Add created_at/modified_at for area registry ( #122014 )
2024-07-17 09:54:06 +02:00
Joost Lekkerkerker
f8ba4d41ba
Add support for adding model_id in device info ( #121989 )
2024-07-16 15:12:25 +02:00
J. Nick Koston
cdf7ecebc0
Make BaseCoordinatorEntity.should_poll a cached_property since it never changes ( #121826 )
2024-07-12 00:39:22 -05:00
Michael Hansen
417abda649
Add HassGetCurrentDate and HassGetCurrentTime intents ( #121707 )
2024-07-11 00:17:04 +02:00
Sid
3142f52a79
Add Ruff refurb rules ( #121701 )
2024-07-10 21:47:40 +02:00
Alan
8ff4991f07
LLM to handle int attributes ( #121037 )
2024-07-06 11:41:18 +02:00
J. Nick Koston
e71f6c5948
Small speedup to processing entity customize ( #121271 )
2024-07-05 08:57:08 +02:00
J. Nick Koston
cdb2ec4231
Small speed up to entity state calculation ( #121273 )
2024-07-05 08:56:20 +02:00
epenet
fe0bafd067
Add warnings for deprecated json helpers ( #121161 )
2024-07-04 20:48:08 +02:00
J. Nick Koston
48172b0426
Small speed up to writing entity state ( #121043 )
2024-07-03 12:16:41 -05:00
Marc Mueller
0e52d149e4
Update voluptuous to 0.15.2 ( #120631 )
...
* Update voluptuous to 0.15.1
* Fix typing issues
* Add type ignores for json result type
* Update voluptuous to 0.15.2
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-07-02 12:57:09 -07:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
Joost Lekkerkerker
1fdd056c0e
Fix ruff manual-dict-comprehension PERF403 ( #120723 )
...
* Fix PERF403
* Fix
* Fix
2024-06-28 14:17:47 +02:00
Joost Lekkerkerker
6ef8e87f88
Fix ruff redefined-argument-from-local PLR1704 ( #120729 )
...
* Fix PLR1704
* Fix
2024-06-28 12:31:07 +02:00
Erik Montnemery
8de771de96
Rename async_track_state_reported_event to async_track_state_report_event ( #120637 )
...
* Rename async_track_state_reported_event to async_track_state_report_event
* Update tests
2024-06-27 13:45:15 +02:00
Erik Montnemery
a165064e9d
Improve typing of state event helpers ( #120639 )
2024-06-27 06:08:19 -05:00
Erik Montnemery
3e9b57cc07
Don't allow updating a device to have no connections or identifiers ( #120603 )
...
* Don't allow updating a device to have no connections or identifiers
* Move check to the top of the function
2024-06-27 09:26:31 +02:00
dougiteixeira
617ab48fa9
Address device helper review comments ( #120615 )
...
* Address review comments from #119761
* Address review comments from #119761
* Address review comments from #119761
* Remove reference from config entry
2024-06-27 08:50:20 +02:00
J. Nick Koston
a5a631148e
Add async_track_state_reported_event to fix integration performance regression ( #120622 )
...
split from https://github.com/home-assistant/core/pull/120621
2024-06-26 23:04:27 -04:00
Marc Mueller
6bceb8ec48
Add some more VolDictType annotations ( #120610 )
2024-06-26 22:44:43 +02:00
Erik Montnemery
9bbeb5d608
Add primary_config_entry attribute to device registry entries ( #119959 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-26 12:26:24 +02:00
Marc Mueller
d527113d59
Improve schema typing (3) ( #120521 )
2024-06-26 11:30:07 +02:00
Michael Hansen
d3ceaef098
Allow timer management from any device ( #120440 )
2024-06-26 09:06:56 +02:00
Marc Mueller
49df0c4366
Improve schema typing (2) ( #120475 )
2024-06-26 02:25:30 +02:00
Erik Montnemery
75c7ae7c69
Support in service descriptions for input sections ( #116100 )
2024-06-25 20:00:48 +02:00
Erik Montnemery
d4e93dd01d
Validate new device identifiers and connections ( #120413 )
2024-06-25 19:17:54 +02:00
Marc Mueller
185e79fa1b
Improve intent schema typing ( #120442 )
2024-06-25 19:02:04 +02:00
Marc Mueller
b393024acd
Improve collection schema typing ( #120441 )
2024-06-25 18:57:15 +02:00
Denis Shulyaka
2386ed3830
Add script llm tool ( #118936 )
...
* Add script llm tool
* Add tests
* More tests
* more test
* more test
* Add area and floor resolving
* coverage
* coverage
* fix ColorTempSelector
* fix mypy
* fix mypy
* add script reload test
* Cache script tool parameters
* Make custom_serializer a part of api
---------
Co-authored-by: Michael Hansen <mike@rhasspy.org>
2024-06-25 10:43:26 -05:00
Marc Mueller
62fd692d27
Improve async_register_admin_service schema typing ( #120405 )
2024-06-25 12:48:00 +02:00
Marc Mueller
b4eee166aa
Add voluptuous type aliases ( #120399 )
2024-06-25 11:58:27 +02:00
Erik Montnemery
0545ed8082
Section support for data entry flows ( #118369 )
...
* Add expandable support for data entry form flows
* Update config_validation.py
* optional options
* Adjust
* Correct translations of data within sections
* Update homeassistant/components/kitchen_sink/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Add missing import
* Update tests/components/kitchen_sink/test_config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Format code
* Match frontend when serializing
* Move section class to data_entry_flow
* Correct serializing
* Fix import in kitchen_sink
* Move and update test
---------
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-25 11:02:00 +02:00
Erik Montnemery
0d1b050520
Remove create_create from StorageCollectionWebsocket.async_setup ( #119489 )
2024-06-24 15:41:08 +02:00
Paulus Schoutsen
5c2db162c4
Remove "no API" prompt ( #120280 )
2024-06-24 08:57:59 +02:00
Paulus Schoutsen
19f97a3e53
LLM to handle decimal attributes ( #120257 )
2024-06-23 17:09:57 -04:00
Paulus Schoutsen
bc45dcbad3
Add template config_entry_attr function ( #119899 )
...
* Template config_entry_attr function
* Complete test coverage
* Improve readability
2024-06-22 21:51:09 -04:00
G Johansson
5ddda14e59
Remove deprecated (moved) helpers from helpers.__init__ ( #120172 )
2024-06-22 20:55:03 +02:00
dougiteixeira
6e32a96ff3
Add the ability to bind the template helper entity to a device ( #117753 )
2024-06-22 12:45:06 +02:00
tronikos
ad1f0db5a4
Pass prompt as system_instruction for Gemini 1.5 models ( #120147 )
2024-06-22 12:35:48 +02:00
dougiteixeira
a8ba22f6bb
Add device linking and stale device link clean up helpers ( #119761 )
2024-06-21 14:46:39 +02:00
Marc Mueller
f0452e9ba0
Update mypy dev 1.11.0a8 ( #120032 )
2024-06-21 13:15:18 +02:00
J. Nick Koston
5ae13c2ae2
Make use_device_name a cached_property in the base entity class ( #119758 )
...
There is a small risk that _attr_name or entity_description
would not be set before state was first written, but that
would likely be a bug.
2024-06-18 21:52:36 -04:00
J. Nick Koston
419dcbf9a1
Fix typo in KEY_ALLOW_CONFIGRED_CORS ( #119905 )
2024-06-18 12:44:27 -05:00
Erik Montnemery
0ca3f25c57
Add WS command for subscribing to storage collection changes ( #119481 )
2024-06-18 16:15:42 +02:00
Paulus Schoutsen
eb89ce47ea
Inline primary integration ( #119860 )
2024-06-18 08:08:08 +02:00
Erik Montnemery
e0378f79a4
Remove create_list from StorageCollectionWebsocket.async_setup ( #119508 )
2024-06-17 12:16:36 +02:00
Paulus Schoutsen
836abe68c7
Track primary integration ( #119741 )
...
* Track primary integration
* Update snapshots
* More snapshots updated
* Uno mas
* Update snapshot
2024-06-16 13:26:06 -04:00
tronikos
6b8bddf6e3
Make remaining time of timers available to LLMs ( #118696 )
...
* Include speech_slots in IntentResponse.as_dict
* Populate speech_slots only if available
* fix typo
* Add test
* test all fields
* Fix another test
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-06-14 20:47:41 +02:00
Erik Montnemery
003f216820
Rename collection.CollectionChangeSet to collection.CollectionChange ( #119532 )
2024-06-14 08:54:37 +02:00
Erik Montnemery
2661581d4e
Fix typos in collection helper ( #119524 )
2024-06-12 20:37:38 +02:00
Erik Montnemery
8620bef5b0
Support shared keys starting with period in services.yaml ( #118789 )
2024-06-11 16:31:19 +02:00
Erik Montnemery
904b89df80
Allow importing typing helper in core files ( #119377 )
...
* Allow importing typing helper in core files
* Really fix the circular import
* Update test
2024-06-11 13:48:12 +02:00
tronikos
5f9455e0fd
Log errors in Intent.async_handle ( #119182 )
...
* Log errors in Intent.async_handle
* log exception stack trace
* Update homeassistant/helpers/intent.py
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-06-10 11:33:12 -04:00
epenet
960d1289ef
Avoid references to websocket_api.const in core and other components ( #119285 )
2024-06-10 13:49:44 +02:00
J. Nick Koston
ad7097399e
Ensure multiple executions of a restart automation in the same event loop iteration are allowed ( #119100 )
...
* Add test for restarting automation
related issue #119097
* fix
* add a delay since restart is an infinite loop
* tests
2024-06-08 17:07:39 -04:00
Paulus Schoutsen
c49ca5ed56
Ensure intent tools have safe names ( #119144 )
2024-06-08 17:53:47 +02:00
paulusbrand
624017a0f9
Add template Base64 decode encoding parameter ( #116603 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-07 17:01:35 +02:00
Michael Hansen
87114bf19b
Fix exposure checks on some intents ( #118988 )
...
* Check exposure in climate intent
* Check exposure in todo list
* Check exposure for weather
* Check exposure in humidity intents
* Add extra checks to weather tests
* Add more checks to todo intent test
* Move climate intents to async_match_targets
* Update test_intent.py
* Update test_intent.py
* Remove patch
2024-06-06 20:41:25 -05:00
J. Nick Koston
62b1bde0e8
Only entity verify state writable once after success unless hass is missing ( #118896 )
2024-06-06 11:46:44 -05:00
Marc Mueller
fe21e2b8ba
Import Generator from typing_extensions (1) ( #118986 )
2024-06-06 17:02:13 +02:00
J. Nick Koston
475c20d529
Always do thread safety check when writing state ( #118886 )
...
* Always do thread safety check when writing state
Refactor the 3 most common places where the thread safety check
for the event loop to be inline to make the check fast enough
that we can keep it long term. While code review catches most
of the thread safety issues in core, some of them still make
it through, and new ones keep getting added. Its not possible
to catch them all with manual code review, so its worth the
tiny overhead to check each time.
Previously the check was limited to custom components
because they were the most common source of thread
safety issues.
* Always do thread safety check when writing state
Refactor the 3 most common places where the thread safety check
for the event loop to be inline to make the check fast enough
that we can keep it long term. While code review catches most
of the thread safety issues in core, some of them still make
it through, and new ones keep getting added. Its not possible
to catch them all with manual code review, so its worth the
tiny overhead to check each time.
Previously the check was limited to custom components
because they were the most common source of thread
safety issues.
* async_fire is more common than expected with ccs
* fix mock
* fix hass mocking
2024-06-05 23:41:55 -04:00
Paulus Schoutsen
52ad90a68d
Include script description in LLM exposed entities ( #118749 )
...
* Include script description in LLM exposed entities
* Fix race in test
* Fix type
* Expose script
* Remove fields
2024-06-04 11:18:07 -04:00
tronikos
f9dff1632e
Use ISO format when passing date to LLMs ( #118705 )
2024-06-03 19:48:50 +02:00
Paulus Schoutsen
bdcfd93129
Automatically fill in slots based on LLM context ( #118619 )
...
* Automatically fill in slots from LLM context
* Add tests
* Apply suggestions from code review
Co-authored-by: Allen Porter <allen@thebends.org>
---------
Co-authored-by: Allen Porter <allen@thebends.org>
2024-06-03 10:36:41 -04:00
epenet
891f9c9578
Add error message to device registry helper ( #118676 )
2024-06-03 09:58:02 +02:00
J. Nick Koston
8f94205014
Include a traceback for non-strict event loop blocking detection ( #118620 )
2024-06-02 06:36:25 -04:00
Paulus Schoutsen
f3b20d30ae
Add base prompt for LLMs ( #118592 )
2024-06-01 00:21:37 -04:00
tronikos
dfb407728f
Stop instructing LLM to not pass the domain as a list ( #118590 )
2024-05-31 20:21:18 -04:00
Jan-Philipp Benecke
32b51b8792
Run ruff format for device registry ( #118582 )
2024-05-31 22:22:48 +02:00
epenet
41e852a01b
Add ability to replace connections in DeviceRegistry ( #118555 )
...
* Add ability to replace connections in DeviceRegistry
* Add more tests
* Improve coverage
* Apply suggestion
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-05-31 15:31:44 -04:00
J. Nick Koston
ade0f94a20
Remove duplicate getattr call in entity wrap_attr ( #118558 )
2024-05-31 11:11:46 -04:00
Paulus Schoutsen
6dd01dbff7
Rename llm.ToolContext to llm.LLMContext ( #118566 )
2024-05-31 11:11:24 -04:00
tronikos
2bd142d3a6
Improve LLM prompt ( #118520 )
2024-05-30 22:03:57 -04:00
tronikos
272c51fb38
Fix unnecessary single quotes escaping in Google AI ( #118522 )
2024-05-30 19:56:06 -04:00
tronikos
0d6c7d0973
Fix LLMs asking which area when there is only one device ( #118518 )
...
* Ignore deprecated open and close cover intents for LLMs
* Fix LLMs asking which area when there is only one device
* remove unrelated changed
* remove unrelated changes
2024-05-30 17:14:11 -04:00
tronikos
6d82cfa91a
Ignore deprecated open and close cover intents for LLMs ( #118515 )
2024-05-30 16:29:13 -04:00
Paulus Schoutsen
80588d9c67
Ignore the toggle intent ( #118491 )
2024-05-30 12:53:50 -04:00
Ron Weikamp
2814ed5003
Add allow_negative configuration option to DurationSelector ( #116134 )
...
* Add configuration option positive to DurationSelector
* Rename to allow_negative in conjunction with a deprecation notice
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-05-30 17:42:34 +02:00
tronikos
4893faa671
Instruct LLM to not pass a list to the domain ( #118451 )
2024-05-30 08:37:45 +02:00
tronikos
639f6c640c
Improve LLM prompt ( #118443 )
...
* Improve LLM prompt
* test
* improvements
* improvements
2024-05-29 21:44:33 -04:00
tronikos
4056c4c2cc
Ask LLM to pass area name and domain ( #118357 )
2024-05-29 08:03:43 -04:00
tronikos
c75cb08aae
Fix LLM tracing for Google Generative AI ( #118359 )
...
Fix LLM tracing for Gemini
2024-05-29 08:02:59 -04:00
tronikos
b7ee90a53c
Expose useful media player attributes to LLMs ( #118363 )
2024-05-29 08:01:40 -04:00
Erik Montnemery
7abffd7cc8
Don't report entities with invalid unique id when loading the entity registry ( #118290 )
2024-05-29 08:32:39 +02:00
J. Nick Koston
f3fa843b9d
Replace pop calls with del where the result is discarded in restore_state ( #118339 )
2024-05-28 23:14:40 -04:00
J. Nick Koston
b94bf1f214
Add cache to more complex entity filters ( #118344 )
...
Many of these do regexes and since the entity_ids are almost
always the same we should cache these
2024-05-28 23:07:50 -04:00
Paulus Schoutsen
d22871f1fd
Reduce the intent response data sent to LLMs ( #118346 )
...
* Reduce the intent response data sent to LLMs
* No longer delete speech
2024-05-28 23:07:00 -04:00
J. Nick Koston
fa9ebb062c
Small speed up to connecting dispatchers ( #118342 )
2024-05-28 16:49:58 -10:00
Paulus Schoutsen
c097a05ed4
Tweak Assist LLM API prompt ( #118343 )
2024-05-28 22:43:22 -04: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
Paulus Schoutsen
615a1eda51
LLM Assist API to ignore intents if not needed for exposed entities or calling device ( #118283 )
...
* LLM Assist API to ignore timer intents if device doesn't support it
* Refactor to use API instances
* Extract ToolContext class
* Limit exposed intents based on exposed entities
2024-05-28 21:29:18 -04:00
J. Nick Koston
e0264c8604
Replace pop calls with del where the result is discarded in entity ( #118340 )
2024-05-28 15:26:53 -10:00
J. Nick Koston
fd9d4dbb34
Use del instead of pop in the entity platform remove ( #118337 )
2024-05-28 15:26:22 -10:00
Michael Hansen
2dc49f0410
Add platforms to intent handlers ( #118328 )
2024-05-28 16:46:08 -04:00
Paulus Schoutsen
f0d7f48930
Handle generic commands as area commands in the LLM Assist API ( #118276 )
...
* Handle generic commands as area commands in the LLM Assist API
* Add word area
2024-05-28 11:21:17 -04:00
Paulus Schoutsen
6f248acfd5
LLM Assist API: Inline all exposed entities ( #118273 )
...
Inline all exposed entities
2024-05-27 21:12:10 -04:00
J. Nick Koston
33ff84469a
Align max expected entities constant between modules ( #118102 )
2024-05-27 14:06:16 -10:00
J. Nick Koston
87989a88cd
Remove translation and icon component path functions ( #118214 )
...
These functions have been stripped down to always return
the same path so there was no longer a need to have a
function for this. This is left-over cleanup from
previous refactoring.
2024-05-27 10:35:52 +02:00
Paulus Schoutsen
ecb05989ca
Add exposed entities to the Assist LLM API prompt ( #118203 )
...
* Add exposed entities to the Assist LLM API prompt
* Check expose entities in Google test
* Copy Google default prompt test cases to LLM tests
2024-05-27 00:27:08 -04:00
Paulus Schoutsen
1602c8063c
Standardize LLM instructions prompt ( #118195 )
...
* Standardize instructions prompt
* Add time/date to default instructions
2024-05-26 20:24:26 -04:00
J. Nick Koston
c368ffffd5
Add async_get_hass_or_none ( #118164 )
2024-05-26 13:38:46 +02:00
Paulus Schoutsen
233c3bb2be
Add render prompt method when no API selected ( #118136 )
2024-05-26 13:35:15 +02:00
J. Nick Koston
607aaa0efe
Speed up template result parsing ( #118168 )
2024-05-26 13:09:12 +02:00
J. Nick Koston
7bbb33b415
Improve script disallowed recursion logging ( #118151 )
2024-05-26 12:58:34 +02:00
Denis Shulyaka
cee3be5f7a
Break long strings in LLM tools ( #118114 )
...
* Break long code strings
* Address comments
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-05-25 14:24:51 -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
J. Nick Koston
42232ecc8a
Remove unused code in template helper ( #118075 )
2024-05-24 17:44:24 -10:00
J. Nick Koston
6923fb1601
Avoid template context manager overhead when template is already compiled ( #118079 )
2024-05-24 17:44:02 -10:00
J. Nick Koston
5cb3bc19c0
Speed up async_render_with_possible_json_value ( #118080 )
2024-05-24 17:43:42 -10:00
J. Nick Koston
3416162fdb
Remove OrderedDict from entity_values as dict guarantees order on newer cpython ( #118081 )
2024-05-24 17:43:20 -10:00
J. Nick Koston
f026083712
Speed up is_template_string by avoiding regex engine ( #118076 )
2024-05-24 17:42:55 -10:00
Denis Shulyaka
da74ac06d7
Add user name and location to the LLM assist prompt ( #118071 )
...
Add user name and location to the llm assist prompt
2024-05-24 22:23:05 -04:00
J. Nick Koston
cf73a47fc0
Significantly speed up single use callback dispatchers ( #117934 )
2024-05-24 11:21:10 -10:00
Paulus Schoutsen
7554ca9460
Allow llm API to render dynamic template prompt ( #118055 )
...
* Allow llm API to render dynamic template prompt
* Make rendering api prompt async so it can become a RAG
* Fix test
2024-05-24 16:04:48 -04:00
J. Nick Koston
a8fba691ee
Add types to event tracker data ( #118010 )
...
* Add types to event tracker data
* fixes
* do not test event internals in other tests
* fixes
* Update homeassistant/helpers/event.py
* cleanup
* cleanup
2024-05-24 10:09:39 -04:00
Marc Mueller
dd22ee3dac
Improve annotation styling ( #118032 )
2024-05-24 15:05:53 +02:00
Marc Mueller
905adb2431
Update codespell ignore list ( #118018 )
2024-05-24 10:24:34 +02:00
Marc Mueller
0e03e591e7
Improve callable annotations ( #118024 )
2024-05-24 10:24:09 +02:00
J. Nick Koston
b7a18e9a8f
Avoid calling split_entity_id in event add/remove filters ( #118015 )
2024-05-24 10:01:33 +02:00
Franck Nijhof
9224997411
Add sequence action for automations & scripts ( #117690 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2024-05-24 09:34:49 +02:00
J. Nick Koston
6c6a5f496a
Simplify async_track_time_interval implementation ( #117956 )
2024-05-22 21:56:49 -10:00
Paulus Schoutsen
1f7245ecf2
Update LLM no tools message ( #117935 )
2024-05-22 21:17:03 -04:00
Peter
eb76386c68
Prevent time pattern reschedule if cancelled during job execution ( #117879 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-22 10:36:03 -10:00
J. Nick Koston
0d5c8e30cd
Migrate issue registry to use singleton helper ( #117848 )
...
* Migrate issue registry to use singleton helper
The other registries were already migrated, but since this
one had a read only flag, it required a slightly different
solution since it uses the same hass.data key
* refactor
2024-05-22 14:13:19 -04:00
Joost Lekkerkerker
0c5296b38f
Add lock to token validity check ( #117912 )
2024-05-22 14:10:23 -04:00
J. Nick Koston
6113b58e9c
Speed up registry indices ( #117897 )
...
* Use defaultdict for registry indices
defaultdict is faster and does not have to create an empty
dict that gets throw away when the key is already present
* Use defaultdict for registry indices
defaultdict is faster and does not have to create an empty
dict that gets throw away when the key is already present
2024-05-22 14:07:39 -04:00
Michael Hansen
f99ec87338
Fail if targeting all devices in the house in service intent handler ( #117930 )
...
* Fail if targeting all devices in the house
* Update homeassistant/helpers/intent.py
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-05-22 13:53:31 -04:00
Denis Shulyaka
009c9e79ae
LLM Tools: Add device_id ( #117884 )
2024-05-21 21:24:46 -04:00
Sid
c2b3bf3fb9
Enable Ruff RET502 ( #115139 )
2024-05-21 22:19:33 +02:00
Paulus Schoutsen
f21226dd0e
Address late feedback Google LLM ( #117873 )
2024-05-21 20:11:18 +02:00
Michael Hansen
8079cc0464
Add description to intent handlers and use in LLM helper ( #117864 )
2024-05-21 12:54:34 -04:00
J. Nick Koston
266ce9e268
Cache area registry JSON serialize ( #117847 )
...
We already cache the entity and device registry, but since I never
used area until recently I did not have enough to notice that they
were not cached
2024-05-21 09:03:31 -04:00