core/homeassistant/components/pegel_online/diagnostics.py

22 lines
486 B
Python

"""Diagnostics support for pegel_online."""
from __future__ import annotations
from typing import Any
from homeassistant.core import HomeAssistant
from . import PegelOnlineConfigEntry
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: PegelOnlineConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
coordinator = entry.runtime_data
return {
"entry": entry.as_dict(),
"data": coordinator.data,
}