Add setup time detail to diagnostics (#117766)
This commit is contained in:
parent
13ba8e62a9
commit
149120b749
4 changed files with 25 additions and 11 deletions
|
@ -93,6 +93,7 @@ async def test_download_diagnostics(
|
|||
|
||||
assert await _get_diagnostics_for_config_entry(hass, hass_client, config_entry) == {
|
||||
"home_assistant": hass_sys_info,
|
||||
"setup_times": {},
|
||||
"custom_components": {
|
||||
"test": {
|
||||
"documentation": "http://example.com",
|
||||
|
@ -256,6 +257,7 @@ async def test_download_diagnostics(
|
|||
"requirements": [],
|
||||
},
|
||||
"data": {"device": "info"},
|
||||
"setup_times": {},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1102,6 +1102,11 @@ async def test_async_get_setup_timings(hass) -> None:
|
|||
"sensor": 1,
|
||||
"filter": 2,
|
||||
}
|
||||
assert setup.async_get_domain_setup_times(hass, "filter") == {
|
||||
"123456": {
|
||||
setup.SetupPhases.PLATFORM_SETUP: 2,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
async def test_setup_config_entry_from_yaml(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue