Allow teaching logbook about events (#32444)

* Allow teaching logbook about events

* Use async_add_executor_job

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-03-05 11:55:50 -08:00
1 parent 7c51318861
commit 8aea538662
10 files changed
+175 -105

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ def _logbook_filtering(hass, last_changed, last_updated):
# pylint: disable=protected-access
entities_filter = logbook._generate_filter_from_config({})
for _ in range(10 ** 5):
if logbook._keep_event(event, entities_filter):
if logbook._keep_event(hass, event, entities_filter):
yield event
start = timer()