2022-01-21 15:39:21 +00:00
|
|
|
"""Diagnostics support for TwenteMilieu."""
|
2024-03-08 15:35:23 +00:00
|
|
|
|
2022-01-21 15:39:21 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import Any
|
|
|
|
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
|
|
hass: HomeAssistant, entry: ConfigEntry
|
|
|
|
) -> dict[str, Any]:
|
|
|
|
"""Return diagnostics for a config entry."""
|
|
|
|
return {
|
2023-02-14 20:26:03 +00:00
|
|
|
f"WasteType.{waste_type.name}": [
|
|
|
|
waste_date.isoformat() for waste_date in waste_dates
|
|
|
|
]
|
2024-05-06 17:21:34 +00:00
|
|
|
for waste_type, waste_dates in entry.runtime_data.data.items()
|
2022-01-21 15:39:21 +00:00
|
|
|
}
|