Home Assistant Unofficial Reference 2024.12.1
diagnostics.py
Go to the documentation of this file.
1 """Diagnostics support for Plugwise."""
2 
3 from __future__ import annotations
4 
5 from typing import Any
6 
7 from homeassistant.core import HomeAssistant
8 
9 from . import PlugwiseConfigEntry
10 
11 
13  hass: HomeAssistant, entry: PlugwiseConfigEntry
14 ) -> dict[str, Any]:
15  """Return diagnostics for a config entry."""
16  coordinator = entry.runtime_data
17  return {
18  "devices": coordinator.data.devices,
19  "gateway": coordinator.data.gateway,
20  }
dict[str, Any] async_get_config_entry_diagnostics(HomeAssistant hass, PlugwiseConfigEntry entry)
Definition: diagnostics.py:14