Redact the hostname in pyLoad diagnostics (#120567)
parent
7eb9875a9e
commit
43d686e0f1
|
@ -6,13 +6,13 @@ from dataclasses import asdict
|
|||
from typing import Any
|
||||
|
||||
from homeassistant.components.diagnostics import async_redact_data
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from . import PyLoadConfigEntry
|
||||
from .coordinator import pyLoadData
|
||||
|
||||
TO_REDACT = {CONF_USERNAME, CONF_PASSWORD}
|
||||
TO_REDACT = {CONF_USERNAME, CONF_PASSWORD, CONF_HOST}
|
||||
|
||||
|
||||
async def async_get_config_entry_diagnostics(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# name: test_diagnostics
|
||||
dict({
|
||||
'config_entry_data': dict({
|
||||
'host': 'pyload.local',
|
||||
'host': '**REDACTED**',
|
||||
'password': '**REDACTED**',
|
||||
'port': 8000,
|
||||
'ssl': True,
|
||||
|
|
Loading…
Reference in New Issue