2395296739
Extract entities from device triggers and device actions ( #175454 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2026-07-09 19:19:00 +02:00
fea4cfaa22
Convert tracing context managers to classes to cut per-step overhead ( #173687 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-07-09 05:23:42 -04:00
a71ec5a80e
Downgrade per-step script execution log messages to debug level ( #175410 )
...
Co-authored-by: David Bonnes <zxdavb@bonnes.me >
2026-07-08 03:31:29 -04:00
Franck Nijhof and GitHub
b2ea48d435
Include repeat actions in script reference extraction ( #175420 )
2026-07-08 03:19:35 -04:00
Franck Nijhof and GitHub
7066f95f0d
Extract entities and devices from event action data ( #175491 )
2026-07-08 02:59:48 -04:00
Abílio Costa and GitHub
dc6269f52d
Add override decorator to remaining homeassistant dir files ( #174488 )
2026-06-22 21:56:03 +02:00
42136f1464
Bubble up conversation response in script run ( #173131 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-06-06 13:47:49 -04:00
eae809abd1
Fix line length violations in core and helpers ( #170534 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-05-14 16:31:01 -04:00
24dadf3668
Enable additional flake8-bugbear ruff rules ( #170494 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: frenck <195327+frenck@users.noreply.github.com >
2026-05-13 18:17:23 +02:00
Artur Pragacz and GitHub
e144804d28
Fix async_unload teardown race in scripts ( #169562 )
2026-05-05 15:03:37 +02:00
epenet and GitHub
7169d52010
Remove import annotations from core ( #169547 )
2026-04-30 20:34:43 +02:00
Erik Montnemery and GitHub
4b28928702
Remove scripts from DATA_SCRIPTS on unload ( #169415 )
2026-04-29 18:09:49 +02:00
Erik Montnemery and GitHub
3be1aa5441
Include errors in script trace when continue_on_error is set ( #168676 )
2026-04-29 17:30:47 +02:00
Erik Montnemery and GitHub
62082bdf14
Use modern condition API in script helper ( #169355 )
2026-04-29 08:51:57 +02:00
Erik Montnemery and GitHub
a92277b7fa
Add method Script.unload ( #169036 )
2026-04-24 15:12:17 +02:00
5cb5b0eb45
Handle wait_for_trigger service actions when extracting references ( #161706 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2026-01-28 10:37:39 +00:00
Abílio Costa and GitHub
0ea03f549c
Support target conditions in script relation extraction ( #161338 )
2026-01-21 12:01:15 +00:00
Artur Pragacz and GitHub
2d33a720f7
Modernise condition checker in helper ( #159159 )
2025-12-16 10:46:10 +01:00
karwosts and GitHub
ddd8cf7fde
Fix a bad script error message ( #157654 )
2025-12-01 15:19:30 -05:00
karwosts and GitHub
03b15f1dba
Log script condition warnings with the instance logger ( #154966 )
2025-10-24 18:42:17 +02:00
35f9cc55f1
Fix Automation/Script: sequence within a parallel ignoring enabled flag ( #142977 )
...
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
Co-authored-by: Franck Nijhof <git@frenck.dev >
2025-04-19 11:49:05 +02:00
alorente and GitHub
63df2474a9
Fix missing response for queued mode scripts ( #141460 )
2025-03-28 10:47:41 +00:00
Artur Pragacz and GitHub
798ee60ae5
Make variables action not restricted to local scopes ( #141114 )
...
Make variables action in scripts not restricted to local scopes
2025-03-23 14:07:52 +01:00
b964bc58be
Fix variable scopes in scripts ( #138883 )
...
Co-authored-by: Erik <erik@montnemery.com >
2025-02-26 16:19:19 +01:00
Artur Pragacz and GitHub
7117708937
Improve reading clarity of steps code in scripts helper ( #134395 )
...
* Reorganize steps code in scripts helper
* Address feedback
* Revert to getattr
2025-02-19 19:37:36 +01:00
Artur Pragacz and GitHub
6c3a9cb1a8
Improve reading clarity of steps code in scripts helper part 1 ( #138628 )
2025-02-19 11:18:28 -06:00
Ville Skyttä and GitHub
40eb8b91cc
Adjust to recommended propcache.api import paths ( #136150 )
2025-01-21 10:58:22 +01:00
Joost Lekkerkerker and GitHub
b4f4b06f29
Enable RUF021 ( #135832 )
2025-01-17 10:20:45 +01:00
Artur Pragacz and GitHub
b009f11013
Fix referenced objects in script sequences ( #135499 )
2025-01-13 11:40:53 +01:00
epenet and GitHub
5df7092f41
Improve formatting in core files ( #135256 )
...
* Adjust core files formatting
* Adjust translations script
2025-01-10 09:08:37 +01:00
Franck Nijhof and GitHub
56b4733e4a
Clean up early assignment in script response ( #131691 )
2024-11-27 10:24:06 +01:00
Petro31 and GitHub
33222436d2
Nested stop actions will now return response_variables ( #126393 )
...
fix-nested-stop-variable-response
2024-11-27 09:18:02 +01:00
756a866ffd
Add completed to the wait variable when using triggers (wait_for_trigger) ( #123427 )
...
* Add support for the wait.completed variable when using wait with triggers
* Remove junk comment
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2024-10-23 17:19:07 +02:00
J. Nick Koston and GitHub
0f29fd3e10
Switch to using fast cached_property implementation in propcache ( #127339 )
2024-10-03 13:11:02 -05:00
b3377fe5fb
Add condition to trigger template entities ( #119689 )
...
* Add conditions to trigger template entities
* Add tests
* Fix ruff error
* Ruff
* Apply suggestions from code review
* Deduplicate
* Tweak name used in debug message
* Add and improve type annotations of modified code
* Adjust typing
* Adjust typing
* Add typing and remove unused parameter
* Adjust typing
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Adjust return type
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-09-11 09:36:49 +02:00
Erik Montnemery and GitHub
992de497f2
Remove unnecessary assignment of Template.hass from script helper ( #123780 )
2024-08-13 11:55:37 +02:00
Erik Montnemery and GitHub
efb7bede40
Enable strict typing on script helper ( #122075 )
2024-07-17 13:51:59 +02:00
Erik Montnemery and GitHub
385f5be7e8
Remove dead code from script helper ( #122074 )
2024-07-17 13:16:57 +02:00
Marc Mueller and GitHub
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
J. Nick Koston and GitHub
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
Marc Mueller and GitHub
fe21e2b8ba
Import Generator from typing_extensions (1) ( #118986 )
2024-06-06 17:02:13 +02:00
J. Nick Koston and GitHub
7bbb33b415
Improve script disallowed recursion logging ( #118151 )
2024-05-26 12:58:34 +02:00
Marc Mueller and GitHub
0e03e591e7
Improve callable annotations ( #118024 )
2024-05-24 10:24:09 +02:00
9224997411
Add sequence action for automations & scripts ( #117690 )
...
Co-authored-by: Robert Resch <robert@resch.dev >
2024-05-24 09:34:49 +02:00
Marc Mueller and GitHub
900b6211ef
Use PEP 695 for function annotations (2) ( #117659 )
2024-05-18 11:44:39 +02:00
Marc Mueller and GitHub
87bb7ced79
Use PEP 695 for simple type aliases ( #117633 )
2024-05-17 14:42:21 +02:00
Matthias Alphart and GitHub
ec4c8ae228
Allow templates for enabling actions ( #117049 )
...
* Allow templates for enabling automation actions
* Use `cv.template` instead of `cv.template_complex`
* Rename test function
2024-05-15 21:03:52 +02:00
ac54cdcdb4
Enable Ruff RUF010 ( #115371 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-05-08 23:54:49 +02:00
Marc Mueller and GitHub
8f614fb06d
Use HassKey for helpers (2) ( #117013 )
2024-05-07 11:24:13 -05:00
Sid and GitHub
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00