core/homeassistant/components/palazzetti/diagnostics.py

21 lines
466 B
Python

"""Provides diagnostics for Palazzetti."""
from __future__ import annotations
from typing import Any
from homeassistant.core import HomeAssistant
from . import PalazzettiConfigEntry
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: PalazzettiConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
client = entry.runtime_data.client
return {
"api_data": client.to_dict(redact=True),
}