Home Assistant Unofficial Reference 2024.12.1
diagnostics.py
Go to the documentation of this file.
1 """Diagnostics support for Elgato."""
2 
3 from __future__ import annotations
4 
5 from typing import Any
6 
7 from homeassistant.core import HomeAssistant
8 
9 from . import ElgatorConfigEntry
10 
11 
13  hass: HomeAssistant, entry: ElgatorConfigEntry
14 ) -> dict[str, Any]:
15  """Return diagnostics for a config entry."""
16  coordinator = entry.runtime_data
17  return {
18  "info": coordinator.data.info.to_dict(),
19  "state": coordinator.data.state.to_dict(),
20  }
dict[str, Any] async_get_config_entry_diagnostics(HomeAssistant hass, ElgatorConfigEntry entry)
Definition: diagnostics.py:14