mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user