mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Redact host address in UniFi diagnostics (#65379)
This commit is contained in:
parent
c82aa1606a
commit
69ac59ce73
@ -7,14 +7,14 @@ from typing import Any
|
||||
|
||||
from homeassistant.components.diagnostics import REDACTED, async_redact_data
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.device_registry import format_mac
|
||||
|
||||
from .const import CONF_CONTROLLER, DOMAIN as UNIFI_DOMAIN
|
||||
|
||||
TO_REDACT = {CONF_CONTROLLER, CONF_PASSWORD}
|
||||
REDACT_CONFIG = {CONF_CONTROLLER, CONF_PASSWORD, CONF_USERNAME}
|
||||
REDACT_CONFIG = {CONF_CONTROLLER, CONF_HOST, CONF_PASSWORD, CONF_USERNAME}
|
||||
REDACT_CLIENTS = {"bssid", "essid"}
|
||||
REDACT_DEVICES = {
|
||||
"anon_id",
|
||||
|
@ -122,7 +122,7 @@ async def test_entry_diagnostics(hass, hass_client, aioclient_mock):
|
||||
"config": {
|
||||
"data": {
|
||||
"controller": REDACTED,
|
||||
"host": "1.2.3.4",
|
||||
"host": REDACTED,
|
||||
"password": REDACTED,
|
||||
"port": 1234,
|
||||
"site": "site_id",
|
||||
|
Loading…
x
Reference in New Issue
Block a user