mirror of
https://github.com/home-assistant/core.git
synced 2026-06-01 21:24:17 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
25 lines
608 B
Python
25 lines
608 B
Python
"""Diagnostics support for Internet Printing Protocol (IPP)."""
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .coordinator import IPPConfigEntry
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, config_entry: IPPConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a config entry."""
|
|
coordinator = config_entry.runtime_data
|
|
|
|
return {
|
|
"entry": {
|
|
"data": {
|
|
**config_entry.data,
|
|
},
|
|
"unique_id": config_entry.unique_id,
|
|
},
|
|
"data": coordinator.data.as_dict(),
|
|
}
|