mirror of https://github.com/home-assistant/core
22 lines
486 B
Python
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,
|
|
}
|