You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Cache condition in helpers.Script
The caching is a simple in-memory, per-instance dictionary.
We use __str__ to format cache keys.
This naive implementation has some disadvantages (e.g., we won't be able
to cache two conditions that contain references to
distinct-but-equivalent object instances and we don't have any control
over the size of the condition cache), but for most simple use-cases the
approach should be good enough.
Resolves#3629
* Fix docstring style
Home Assistant release (
hass --version
): 0.29.5Python release (
python3 --version
): AllComponent/platform: homeassistant.helpers.script
Description of problem:
When we're running a script, we will always construct a new condition from the config. This should be cached on the Script instance instead.
Fix should also include
condition.async_from_config
is only called once.Constructing new condition from config code
The text was updated successfully, but these errors were encountered: