Home Assistant Unofficial Reference 2024.12.1
diagnostics.py
Go to the documentation of this file.
1 """Diagnostics support for TwenteMilieu."""
2 
3 from __future__ import annotations
4 
5 from typing import Any
6 
7 from homeassistant.config_entries import ConfigEntry
8 from homeassistant.core import HomeAssistant
9 
10 
12  hass: HomeAssistant, entry: ConfigEntry
13 ) -> dict[str, Any]:
14  """Return diagnostics for a config entry."""
15  return {
16  f"WasteType.{waste_type.name}": [
17  waste_date.isoformat() for waste_date in waste_dates
18  ]
19  for waste_type, waste_dates in entry.runtime_data.data.items()
20  }
dict[str, Any] async_get_config_entry_diagnostics(HomeAssistant hass, ConfigEntry entry)
Definition: diagnostics.py:13