Add diagnostics platform to Fastdotcom (#111525)
This commit is contained in:
parent
4b4258881b
commit
1ff049cc66
7 changed files with 83 additions and 12 deletions
24
homeassistant/components/fastdotcom/diagnostics.py
Normal file
24
homeassistant/components/fastdotcom/diagnostics.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
"""Diagnostics support for Fast.com."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .const import DOMAIN
|
||||
from .coordinator import FastdotcomDataUpdateCoordinator
|
||||
|
||||
|
||||
async def async_get_config_entry_diagnostics(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry
|
||||
) -> dict[str, Any]:
|
||||
"""Return diagnostics for the config entry."""
|
||||
coordinator: FastdotcomDataUpdateCoordinator = hass.data[DOMAIN][
|
||||
config_entry.entry_id
|
||||
]
|
||||
|
||||
return {
|
||||
"coordinator_data": coordinator.data,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue