Files
core/homeassistant/components
Michael Chisholm e35e460e69 Use parent_id to find cause of logbook events with new contexts (#44416)
* Use parent_id to find cause of events with new contexts

When looking up the causing event for logbook display, use the `parent_id`
of the current context if the current context just points back to the
current event.

This now shows in the logbook the cause of an event in the case that a
component has created a new context from an existing context and tied
them together via the `Context.parent_id`.

* Fix exception when parent event not available

* Use async_Log_entry to avoid jump into executor
2021-01-07 20:27:03 -10:00
..
2020-12-25 00:03:46 +00:00
2020-12-20 00:04:36 +00:00
2020-12-20 00:04:36 +00:00
2020-12-30 20:25:57 +01:00
2020-12-21 00:04:09 +00:00
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
2020-12-21 00:04:09 +00:00
2020-11-25 08:45:15 +01:00
…
2020-12-24 00:03:44 +00:00
…
2020-12-08 23:14:55 +01:00
2020-12-20 00:04:36 +00:00
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
2020-11-25 08:25:09 +01:00
2020-12-21 00:04:09 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
…
2020-12-10 00:03:01 +00:00
2020-12-18 12:29:16 -07:00
2020-12-04 00:05:42 +00:00
2020-12-07 00:04:18 +00:00
2020-12-31 01:06:26 +01:00
2020-12-24 00:03:44 +00:00
2021-01-06 13:41:21 +01:00
2020-12-10 00:03:01 +00:00
2020-11-15 00:03:48 +00:00
2020-12-20 00:04:36 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-20 00:04:36 +00:00
2020-12-10 00:03:01 +00:00
2020-12-23 00:03:22 +00:00
…
2021-01-01 17:59:05 +01:00
2020-12-20 00:04:36 +00:00
…
2020-12-07 00:04:18 +00:00
2020-12-10 00:03:01 +00:00
2021-01-02 01:34:10 +01:00
2020-12-10 00:03:01 +00:00
2020-12-04 00:05:42 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-31 23:44:04 +01:00
…
…
2020-12-14 00:03:52 +00:00
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
2020-11-16 18:53:42 +01:00
…
2020-11-25 08:45:15 +01:00
2020-11-25 08:45:15 +01:00
…
…
2020-11-21 00:08:32 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-10 00:03:01 +00:00
2020-12-20 00:04:36 +00:00
…
2020-12-10 00:03:01 +00:00
2020-12-10 00:03:01 +00:00
2020-12-07 00:04:18 +00:00
2020-12-10 00:03:01 +00:00
2020-12-07 00:04:18 +00:00
2020-12-24 00:03:44 +00:00
…
2020-12-20 00:04:36 +00:00
2020-11-19 00:11:12 +00:00
…
2020-12-07 00:04:18 +00:00
2020-12-10 00:03:01 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
2020-12-21 00:04:09 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
2020-12-20 00:04:36 +00:00
2020-12-24 00:03:44 +00:00
2020-12-07 00:04:18 +00:00
2020-12-21 00:04:09 +00:00
…
…
…
2020-11-25 20:03:56 +01:00
2020-12-04 00:05:42 +00:00
…
2020-12-24 00:03:44 +00:00
2020-12-18 21:12:16 +01:00
…
2020-12-18 00:03:48 +00:00
2020-12-10 00:03:01 +00:00
2020-12-07 00:04:18 +00:00
…
…
…
…
2020-12-10 00:03:01 +00:00
2020-12-24 00:03:44 +00:00
…
2020-12-02 10:47:45 +01:00
2020-12-07 00:04:18 +00:00
2020-12-04 00:05:42 +00:00
…
2020-12-07 00:04:18 +00:00
…
2020-12-21 00:04:09 +00:00
…
2020-12-07 00:04:18 +00:00
…
2020-12-07 00:04:18 +00:00
…
2020-12-10 00:03:01 +00:00
2020-11-24 19:56:39 +01:00
2020-12-20 00:04:36 +00:00
…
2020-12-10 00:03:01 +00:00
2020-12-10 00:03:01 +00:00
2020-12-24 00:03:44 +00:00
2020-12-10 00:03:01 +00:00
2021-01-06 08:27:46 +01:00
2020-12-17 08:08:19 -10:00
…
…
2020-12-24 00:03:44 +00:00
2020-12-21 00:04:09 +00:00
2021-01-08 03:00:53 +01:00
2020-12-20 00:04:36 +00:00
…
…
2020-12-10 00:03:01 +00:00
2020-12-11 18:02:23 +01:00
2020-12-10 00:03:01 +00:00
2020-12-20 00:04:36 +00:00
2021-01-04 11:46:58 +01:00
…
…
2020-12-20 00:04:36 +00:00
2020-11-05 00:10:11 +00:00
2020-12-07 00:04:18 +00:00
2020-12-10 00:03:01 +00:00
…
…
2020-12-21 00:04:09 +00:00
2020-12-21 00:04:09 +00:00
2020-12-10 00:03:01 +00:00
2020-12-10 00:03:01 +00:00
2020-12-24 00:03:44 +00:00
2020-12-18 00:03:48 +00:00
2020-12-07 00:04:18 +00:00
2020-12-07 00:04:18 +00:00
2020-12-20 00:04:36 +00:00
2020-12-20 00:04:36 +00:00
…
…
2020-12-21 00:04:09 +00:00
2020-12-04 00:05:42 +00:00
…
2020-12-07 00:04:18 +00:00
…
2020-12-20 00:04:36 +00:00
2020-12-10 00:03:01 +00:00
2020-12-21 00:04:09 +00:00
2020-12-21 00:04:09 +00:00
2020-12-29 17:48:36 +01:00
2020-11-22 12:21:27 +01:00
…
2020-12-21 00:04:09 +00:00
2020-12-07 00:04:18 +00:00
2020-12-21 00:04:09 +00:00
2020-12-20 00:04:36 +00:00
…
…
2020-12-24 00:03:44 +00:00
2020-12-10 00:03:01 +00:00
2020-11-23 08:05:22 -05:00
2021-01-02 18:38:45 -08:00
2020-12-21 00:04:09 +00:00
2020-12-10 00:03:01 +00:00
2020-12-04 00:05:42 +00:00
…
2020-12-24 00:03:44 +00:00
2020-12-31 14:28:15 -10:00
2020-12-20 00:04:36 +00:00
2020-12-21 00:04:09 +00:00
2020-11-16 00:03:40 +00:00
…
…
2020-12-02 00:03:14 +00:00
2020-12-04 00:05:42 +00:00
2020-12-20 00:04:36 +00:00
2021-01-04 03:53:15 +01:00
…
2020-12-24 00:03:44 +00:00
2020-12-20 00:04:36 +00:00
2020-12-20 00:04:36 +00:00
2020-12-24 00:03:44 +00:00
…
…
…
2020-12-24 00:03:44 +00:00
2020-12-07 00:04:18 +00:00
2020-12-04 00:05:42 +00:00
2020-12-07 00:04:18 +00:00
2020-12-31 01:18:58 +01:00
…
2020-12-24 00:03:44 +00:00
2020-12-20 00:04:36 +00:00
2020-12-07 00:04:18 +00:00
2020-12-20 00:04:36 +00:00
…
2021-01-01 00:48:44 +01:00
2020-12-20 00:04:36 +00:00
…
2020-11-24 00:04:19 +00:00
2020-12-20 00:04:36 +00:00
2020-11-06 09:19:27 +01:00
2020-12-04 00:05:42 +00:00
2020-12-30 23:06:30 +01:00
2020-12-07 00:04:18 +00:00
2020-12-10 00:03:01 +00:00
…
…
2020-12-15 00:04:49 +00:00
2020-11-11 00:10:27 +00:00
2020-12-30 02:43:44 +01:00
2020-12-07 00:04:18 +00:00
2020-12-04 00:05:42 +00:00
2020-12-21 00:04:09 +00:00
2020-12-10 00:03:01 +00:00
2020-12-14 15:16:39 +01:00
…
…
2020-12-21 00:04:09 +00:00
2020-11-25 08:45:15 +01:00
2020-12-10 00:03:01 +00:00
2020-12-31 19:35:42 -10:00
…
2020-11-25 08:45:15 +01:00
…
2021-01-07 08:44:34 -10:00