Allow teaching logbook about events (#32444)
* Allow teaching logbook about events * Use async_add_executor_job * Fix tests
This commit is contained in:
1 parent
7c51318861
commit
8aea538662
10 files changed
+175
-105
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user