core/homeassistant/components/rfxtrx/diagnostics.py

21 lines
538 B
Python

"""Diagnostics support for RFXCOM RFXtrx."""
from __future__ import annotations
from typing import Any
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
TO_REDACT = {"host"}
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: ConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
return {
"entry": async_redact_data(entry.as_dict(), TO_REDACT),
}