Files
core/homeassistant/components/ohme/diagnostics.py
epenetGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 21:14:48 +02:00

22 lines
564 B
Python

"""Provides diagnostics for Ohme."""
from typing import Any
from homeassistant.core import HomeAssistant
from .coordinator import OhmeConfigEntry
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, config_entry: OhmeConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for Ohme."""
coordinators = config_entry.runtime_data
client = coordinators.charge_session_coordinator.client
return {
"device_info": client.device_info,
"vehicles": client.vehicles,
"cap_available": client.cap_available,
}