d766aae436
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: frenck <[email protected]>
22 lines
564 B
Python
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,
|
|
}
|