Include the first seen context data in the logbook api (#39194)

* Include the context_entity_id in the logbook api

context_entity_id is the first entity seen during
a time period that includes the context

* update test

* more of them

* include friendly name

* pylint wants a ternary

* Refactor

* performance

* fix homekit context

* Fix self describing events

* Fix external_events
This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-08-24 12:44:40 -05:00
1 parent b1c0d8fb6c
commit 6b7a7939d2
9 files changed
+473 -101

No files matched your search

+1
View File
@@ -516,6 +516,7 @@ async def test_logbook_humanify_script_started_event(hass):
),
],
entity_attr_cache,
{},
)
)