Commit Graph

21504 Commits (74438783335c11f1f4a50681d86758ff7207f08d)

Author SHA1 Message Date
tronikos 7443878333
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-15 18:19:16 +02:00
Erik Montnemery 6ea18a7b24
Fix statistic_during_period after core restart (#119323) 2024-06-11 11:17:22 +02:00
J. Nick Koston 74b49556f9
Improve workday test coverage (#119259) 2024-06-11 11:10:27 +02:00
Abílio Costa a28f5baeeb
Fix wrong arg name in Idasen Desk config flow (#119247) 2024-06-11 11:10:14 +02:00
J. Nick Koston f9352dfe8f
Switch unifiprotect lib to use uiprotect (#119243) 2024-06-11 11:09:20 +02:00
Joakim Plate 119d4c2316
Always provide a currentArmLevel in Google assistant (#119238) 2024-06-11 10:29:34 +02:00
epenet 1e7ab07d9e
Revert SamsungTV migration (#119234) 2024-06-11 10:29:31 +02:00
Quentin d8f3778d77
Fix elgato light color detection (#119177) 2024-06-11 10:29:08 +02:00
Shay Levy 9a8e3ad5cc
Handle Shelly BLE errors during connect and disconnect (#119174) 2024-06-11 10:29:05 +02:00
Tom Brien 7912c9e95c
Fix workday timezone (#119148) 2024-06-11 10:28:55 +02:00
Paulus Schoutsen 4bb1ea1da1
Ensure intent tools have safe names (#119144) 2024-06-11 10:28:51 +02:00
tronikos 34477d3559
Properly handle escaped unicode characters passed to tools in Google Generative AI (#119117) 2024-06-11 10:28:38 +02:00
J. Nick Koston 87f48b15d1
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-11 10:28:31 +02:00
kaareseras a1f2140ed7
Fix Azure data explorer (#119089)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-11 10:28:28 +02:00
G Johansson ebb0a453f4
Calculate attributes when entity information available in Group sensor (#119021) 2024-06-11 10:28:21 +02:00
karwosts fc83bb1737
Fix statistic_during_period wrongly prioritizing ST statistics over LT (#115291)
* Fix statistic_during_period wrongly prioritizing ST statistics over LT

* comment

* start of a test

* more testcases

* fix sts insertion range

* update from review

* remove unneeded comments

* update logic

* min/mean/max testing
2024-06-11 10:28:09 +02:00
Matthias Alphart 31b44b7846
Fix KNX `climate.set_hvac_mode` not turning `on` (#119012) 2024-06-07 20:23:47 +02:00
Matthias Alphart de3a0841d8
Increase test coverage for KNX Climate (#117903)
* Increase test coverage fro KNX Climate

* fix test type annotation
2024-06-07 20:23:40 +02:00
Mike Degatano 581fb2f9f4
Always have addon url in detached_addon_missing (#119011) 2024-06-07 20:21:25 +02:00
J. Nick Koston cfa619b67e
Remove isal from after_dependencies in http (#119000) 2024-06-07 20:21:18 +02:00
Michael Hansen 56db7fc7dc
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-07 20:20:41 +02:00
Joost Lekkerkerker 1f6be7b4d1
Fix unit of measurement for airgradient sensor (#118981) 2024-06-07 20:18:45 +02:00
Jan-Philipp Benecke 86b13e8ae3
Fix flaky Google Assistant test (#118914)
* Fix flaky Google Assistant test

* Trigger full ci
2024-06-07 20:16:58 +02:00
Rami Mosleh 5a7332a135
Check if imap message text has a value instead of checking if its not None (#118901)
* Check if message_text has a value instead of checking if its not None

* Strip message_text to ensure that its actually empty or not

* Add test with multipart payload having empty plain text
2024-06-07 20:16:55 +02:00
Michael Hansen 0f9a91d369
Prioritize literal text with name slots in sentence matching (#118900)
Prioritize literal text with name slots
2024-06-07 20:16:52 +02:00
Robert Resch c27f0c560e
Replace slave by meter in v2c (#118893) 2024-06-05 18:59:52 +02:00
Erik Montnemery 5e35ce2996
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:59:44 +02:00
Jan Bouwhuis 63947e4980
Improve repair issue when notify service is still being used (#118855)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-06-05 15:51:02 +02:00
Pete Sage 0084d6c5bd
Fix Hydrawise sensor availability (#118669)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-05 15:50:47 +02:00
J. Nick Koston b02c9aa2ef
Ensure name of task is logged for unhandled loop exceptions (#118822) 2024-06-04 21:31:45 +02:00
Maciej Bieniek b1b26af92b
Check if Shelly `entry.runtime_data` is available (#118805)
* Check if runtime_data is available

* Add tests

* Use `is` operator

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-04 21:31:33 +02:00
arturyak b107ffd30d
Add missing FAN_ONLY mode to ccm15 (#118804) 2024-06-04 21:31:28 +02:00
Joost Lekkerkerker 776675404a
Set unique id in aladdin connect config flow (#118798) 2024-06-04 21:30:08 +02:00
Paulus Schoutsen 38ee32fed2
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 21:21:26 +02:00
Tsvi Mostovicz 111d11aaca
Fix updating options in Jewish Calendar (#118643) 2024-06-04 21:21:23 +02:00
Richard Kroegel 50efce4e53
Allow per-sensor unit conversion on BMW sensors (#110272)
* Update BMW sensors to use device_class

* Test adjustments

* Trigger CI

* Remove unneeded cast

* Set suggested_display_precision to 0

* Rebase for climate_status

* Change charging_status to ENUM device class

* Add test for Enum translations

* Pin Enum sensor values

* Use snapshot_platform helper

* Remove translation tests

* Formatting

* Remove comment

* Use const.STATE_UNKOWN

* Fix typo

* Update strings

* Loop through Enum sensors

* Revert enum sensor changes

---------

Co-authored-by: Richard <rikroe@users.noreply.github.com>
2024-06-04 12:20:08 +02:00
Richard Kroegel c8538f3c08
Use snapshot_platform helper for BMW tests (#118735)
* Use snapshot_platform helper

* Remove comments

---------

Co-authored-by: Richard <rikroe@users.noreply.github.com>
2024-06-04 12:19:01 +02:00
Richard Kroegel f2b1635969
Refactor fixture calling for BMW tests (#118708)
* Refactor BMW tests to use pytest.mark.usefixtures

* Fix freeze_time

---------

Co-authored-by: Richard <rikroe@users.noreply.github.com>
2024-06-04 12:01:40 +02:00
Jan Bouwhuis 01c4ca2749
Recover mqtt abbrevations optimizations (#118762)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-04 11:58:12 +02:00
Michael Hansen 4b4b5362d9
Clean up exposed domains (#118753)
* Remove lock and script

* Add media player

* Fix tests
2024-06-04 11:58:08 +02:00
Paulus Schoutsen d68d871054
Update OpenAI prompt on each interaction (#118747) 2024-06-04 11:57:58 +02:00
Jan Bouwhuis 69bdefb02d
Revert "Allow MQTT device based auto discovery" (#118746)
Revert "Allow MQTT device based auto discovery (#109030)"

This reverts commit 585892f067.
2024-06-04 11:57:55 +02:00
Joost Lekkerkerker 8072a268a1
Require firmware version 3.1.1 for airgradient (#118744) 2024-06-03 21:26:19 +02:00
epenet fd9ea2f224
Bump renault-api to 0.2.3 (#118718) 2024-06-03 21:26:04 +02:00
Diogo Gomes f064f44a09
Address reviews comments in #117147 (#118714) 2024-06-03 21:26:01 +02:00
Erik Montnemery f3d1157bc4
Remove tag_id from tag store (#118713) 2024-06-03 21:25:58 +02:00
Erik Montnemery cc83443ad1
Don't store tag_id in tag storage (#118707) 2024-06-03 21:25:52 +02:00
tronikos 8a516207e9
Use ISO format when passing date to LLMs (#118705) 2024-06-03 21:25:49 +02:00
Joost Lekkerkerker ea85ed6992
Disable both option in Airgradient select (#118702) 2024-06-03 21:25:43 +02:00
Joost Lekkerkerker 54425b756e
Configure device in airgradient config flow (#118699) 2024-06-03 21:25:40 +02:00