hass-core/tests
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
..
auth Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
components Use parent_id to find cause of logbook events with new contexts (#44416) 2021-01-07 20:27:03 -10:00
fixtures Correct Plugwise sensor scaling (#44344) 2021-01-08 02:44:00 +01:00
hassfest Upgrade isort to 5.4.2 (#37939) 2020-08-29 08:23:55 +02:00
helpers Make DeviceRegistry.async_get_device connections arg optional (#44897) 2021-01-07 13:49:45 +01:00
mock Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_util Fix unmocked https in the test suite (#42316) 2020-10-25 07:16:23 -05:00
testing_config Fix extracting entity and device IDs from scripts (#44048) 2020-12-08 13:06:29 +01:00
util Add more debug details to running timeouts (#43644) 2021-01-04 13:10:39 +01:00
__init__.py async HTTP component (#3914) 2016-10-23 23:48:01 -07:00
bandit.yaml Enable more Bandit tests (#44307) 2020-12-19 12:35:13 +01:00
common.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
conftest.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
ignore_uncaught_exceptions.py Don't try and store exceptions when the key is missing (#41803) 2020-10-16 10:01:58 +02:00
test_bootstrap.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_config.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_config_entries.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_core.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_data_entry_flow.py Add data entry flow show progress step (#42419) 2020-11-09 18:39:28 +01:00
test_loader.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_main.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_requirements.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_setup.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00