mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
21 lines
509 B
Python
21 lines
509 B
Python
"""Provides diagnostics for Tado."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from . import TadoConfigEntry
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, config_entry: TadoConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a Tado config entry."""
|
|
|
|
return {
|
|
"data": config_entry.runtime_data.coordinator.data,
|
|
"mobile_devices": config_entry.runtime_data.mobile_coordinator.data,
|
|
}
|