mirror of
https://github.com/home-assistant/core.git
synced 2026-07-02 20:26:16 +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>
17 lines
466 B
Python
17 lines
466 B
Python
"""Provides diagnostics for Tado."""
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .coordinator import TadoConfigEntry
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, config_entry: TadoConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a Tado config entry."""
|
|
|
|
rate_limit = config_entry.runtime_data.get_rate_limit()
|
|
return {"data": config_entry.runtime_data.data, "rate_limit": rate_limit}
|