core/homeassistant/helpers
Clemens Wolff 711526e574 Cache condition in helpers.Script (#3797)
* 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
2016-10-10 23:36:38 -07:00
..
__init__.py Filter out falsey platform configs 2016-09-24 00:03:44 -07:00
condition.py Make automation async 2016-10-01 14:11:16 -07:00
config_validation.py Coerce device IDs from known_devices to be slugs (#3764) 2016-10-08 14:40:50 -07:00
discovery.py Allow circular dependency with discovery (#2616) 2016-07-25 22:49:10 -07:00
entity.py Make automation async 2016-10-01 14:11:16 -07:00
entity_component.py Reload groups (#3203) 2016-09-07 06:59:16 -07:00
event.py Add async_safe annotation (#3688) 2016-10-04 20:44:32 -07:00
event_decorators.py Move unit system to util (#2763) 2016-08-08 20:42:25 -07:00
location.py Improvement typing (#2735) 2016-08-07 16:26:35 -07:00
script.py Cache condition in helpers.Script (#3797) 2016-10-10 23:36:38 -07:00
service.py Make Service.call_from_config async 2016-10-01 14:11:16 -07:00
state.py Add open/closed state for open_cover and close_cover in SERVICE_TO_STATE (#3180) 2016-09-12 18:31:44 -07:00
template.py Service config calls will no longer mutate original config (#3628) 2016-09-30 23:26:15 -07:00
typing.py Device tracker component & platform validation. No more home_range. (#2908) 2016-08-30 10:22:52 -06:00