core/homeassistant/components/nordpool/diagnostics.py

17 lines
408 B
Python

"""Diagnostics support for Nord Pool."""
from __future__ import annotations
from typing import Any
from homeassistant.core import HomeAssistant
from . import NordPoolConfigEntry
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: NordPoolConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for Nord Pool config entry."""
return {"raw": entry.runtime_data.data.raw}