Skip to content

Commit

Permalink
Add redact info to diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Nov 13, 2024
1 parent 50d46f2 commit 278bebf
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions custom_components/sector/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
"""Diagnostics support for Sector."""

from __future__ import annotations

from typing import Any

from homeassistant.components.diagnostics.util import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant

from .const import DOMAIN
from .coordinator import SectorDataUpdateCoordinator

TO_REDACT = {
"PanelId",
"LegalOwnerName",
"AuthorizationToken",
"Id",
"UserName",
"FirstName",
"LastName",
"CustomerNo",
"CellPhone",
"CustomerNo",
"DefaultPanelId",
"SerialNo",
"DeviceId",
"FirstName",
"Id",
"Key",
"LastName",
"LegalOwnerName",
"PanelId",
"PersonId",
"RemoteControlSerialNumber",
"Serial",
"SerialNo",
"SerialString",
"User",
"UserName",
}


Expand Down

0 comments on commit 278bebf

Please sign in to comment.