mirror of
https://github.com/home-assistant/core.git
synced 2026-02-28 05:46:00 +00:00
Co-authored-by: mik-laj <12058428+mik-laj@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
554 B
Python
23 lines
554 B
Python
"""Diagnostics support for GIOS."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import asdict
|
|
from typing import Any
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .coordinator import GiosConfigEntry
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, config_entry: GiosConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a config entry."""
|
|
coordinator = config_entry.runtime_data
|
|
|
|
return {
|
|
"config_entry": config_entry.as_dict(),
|
|
"coordinator_data": asdict(coordinator.data),
|
|
}
|