mirror of
https://github.com/home-assistant/core.git
synced 2026-06-01 21:24:17 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
26 lines
577 B
Python
26 lines
577 B
Python
"""Diagnostics support for Verisure."""
|
|
|
|
from typing import Any
|
|
|
|
from homeassistant.components.diagnostics import async_redact_data
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .coordinator import VerisureConfigEntry
|
|
|
|
TO_REDACT = {
|
|
"date",
|
|
"area",
|
|
"deviceArea",
|
|
"name",
|
|
"time",
|
|
"reportTime",
|
|
"userString",
|
|
}
|
|
|
|
|
|
async def async_get_config_entry_diagnostics(
|
|
hass: HomeAssistant, entry: VerisureConfigEntry
|
|
) -> dict[str, Any]:
|
|
"""Return diagnostics for a config entry."""
|
|
return async_redact_data(entry.runtime_data.data, TO_REDACT)
|