mirror of
https://github.com/home-assistant/core.git
synced 2026-07-06 22:36:33 +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>
24 lines
687 B
Python
24 lines
687 B
Python
"""Diagnostics platform for IronOS integration."""
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.const import CONF_ADDRESS
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from . import IronOSConfigEntry
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, config_entry: IronOSConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a config entry."""
|
|
|
|
return {
|
|
"config_entry_data": {
|
|
CONF_ADDRESS: config_entry.unique_id,
|
|
},
|
|
"device_info": config_entry.runtime_data.live_data.device_info,
|
|
"live_data": config_entry.runtime_data.live_data.data,
|
|
"settings_data": config_entry.runtime_data.settings.data,
|
|
}
|