Intelligent timeout handler for setup/bootstrap (#38329)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
caca762088
commit
c291d4aa7d
21 changed files with 901 additions and 89 deletions
|
@ -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[6] is the warning message for platform setup
|
||||
timeout, logger_method = mock_call.mock_calls[6][1][:2]
|
||||
# mock_calls[4] is the warning message for platform setup
|
||||
timeout, logger_method = mock_call.mock_calls[4][1][:2]
|
||||
|
||||
assert timeout == entity_platform.SLOW_SETUP_WARNING
|
||||
assert logger_method == _LOGGER.warning
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue