core/homeassistant
J. Nick Koston 34ccb6588c
Cleanup async_track_state_change and augment docstring (#37251)
* Cleanup async_track_state_change and augment docstrings.

Skip from_state and to_state matching in
async_track_state_change when they are None

Optimize the state change listener for the most
common use case: no to_state and from_state
matching.

* Update benchmark to be more realistic (previously we assumed only one entity was present in the whole instance)

* Add more tests to ensure behavior is preserved

* Ensure new behavior matches test

* remove MATCH_ALL from zone automation since its the default anyways

* Might as well use async_track_state_change_event instead since MATCH_ALL is removed
2020-07-05 17:31:33 -05:00
..
auth Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
components Cleanup async_track_state_change and augment docstring (#37251) 2020-07-05 17:31:33 -05:00
generated Add config flow + async support for SmartHab integration (#34387) 2020-07-05 14:20:51 -05:00
helpers Cleanup async_track_state_change and augment docstring (#37251) 2020-07-05 17:31:33 -05:00
scripts Cleanup async_track_state_change and augment docstring (#37251) 2020-07-05 17:31:33 -05:00
util Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Add new Remote Python Debugger integration (#36960) 2020-06-22 15:17:59 +02:00
config.py Add concept of allowed external URLs to config (#36988) 2020-06-24 17:37:01 -07:00
config_entries.py Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
const.py Enhance automation integration to use new features in script helper (#37479) 2020-07-05 09:25:15 -05:00
core.py Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
data_entry_flow.py
exceptions.py Add and fix type hints (#36501) 2020-06-06 20:34:56 +02:00
loader.py Improve after_dependencies handling (#36898) 2020-06-19 17:24:33 -07:00
package_constraints.txt Update frontend to 20200702.0 (#37369) 2020-07-02 12:53:16 -07:00
requirements.py
setup.py Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
strings.json