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
|
@ -811,3 +811,11 @@ def async_get_setup_timings(hass: core.HomeAssistant) -> dict[str, float]:
|
|||
domain_timings[domain] = total_top_level + group_max
|
||||
|
||||
return domain_timings
|
||||
|
||||
|
||||
@callback
|
||||
def async_get_domain_setup_times(
|
||||
hass: core.HomeAssistant, domain: str
|
||||
) -> Mapping[str | None, dict[SetupPhases, float]]:
|
||||
"""Return timing data for each integration."""
|
||||
return _setup_times(hass).get(domain, {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue