J. Nick Koston
ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately ( #115169 )
2024-04-08 10:07:54 -10:00
J. Nick Koston
1462c99bc0
Load template platforms with eager_start ( #114701 )
...
* Load template platforms with eager_start
These can all be loaded synchronously
* missed some
2024-04-04 09:33:10 +02:00
Erik Montnemery
d0352ed91d
Fix missing context when running script from template entity ( #113523 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 12:37:24 -10:00
J. Nick Koston
51f871227e
Attach template triggers at start eagerly ( #113120 )
...
This method calls async_initialize_triggers which is likely to never
suspend and the attach can avoid being scheduled on the event loop
2024-03-11 21:34:32 -04:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
J. Nick Koston
c4653be2fa
Make template trigger callbacks when nothing needs to be awaited ( #110771 )
...
async_initialize_triggers supports a coro or a callback, and in most
cases the user will not have configured a script so we can avoid
creating a task
2024-02-17 17:37:46 +01:00
J. Nick Koston
4b7a313ece
Use identity checks for CoreState ( #107846 )
...
Some of the checks used ==, and some used is. Switch
everything to is as its faster
2024-01-12 10:21:26 +01:00
Jan-Philipp Benecke
b28fda2433
Move template coordinator to its own file ( #99419 )
...
* Move template update coordinator to its own file
* Add coordinator.py to .coveragerc
* Remove coordinator.py to .coveragerc
* Apply suggestions from code review
* Update homeassistant/components/template/coordinator.py
* Copy over fixes from upstream
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-09-06 08:54:25 +02:00