Files
core/homeassistant/components/overseerr/diagnostics.py
T
epenetGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 21:14:48 +02:00

25 lines
588 B
Python

"""Diagnostics support for Overseerr."""
from dataclasses import asdict
from typing import Any
from homeassistant.core import HomeAssistant
from . import CONF_CLOUDHOOK_URL
from .coordinator import OverseerrConfigEntry
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: OverseerrConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
has_cloudhooks = CONF_CLOUDHOOK_URL in entry.data
data = entry.runtime_data
return {
"has_cloudhooks": has_cloudhooks,
"coordinator_data": asdict(data.data),
}