Log which task is blocking startup when debug logging is on (#38134)

* Log which task is blocking startup when debug logging for homeassistant.core is on

* test needs to go one level deeper now
This commit is contained in:
J. Nick Koston authored and Franck Nijhof committed 2020-07-24 21:53:55 +02:00
1 parent 24b8545ebe
commit 979dafd0a7
3 files changed
+39 -3

No files matched your search

+2 -2
View File
@@ -188,8 +188,8 @@ async def test_platform_warn_slow_setup(hass):
assert mock_call.called
# mock_calls[0] is the warning message for component setup
# mock_calls[5] is the warning message for platform setup
timeout, logger_method = mock_call.mock_calls[5][1][:2]
# mock_calls[6] is the warning message for platform setup
timeout, logger_method = mock_call.mock_calls[6][1][:2]
assert timeout == entity_platform.SLOW_SETUP_WARNING
assert logger_method == _LOGGER.warning