1
0
mirror of https://github.com/home-assistant/core synced 2024-06-29 06:15:03 +00:00

Redact the hostname in pyLoad diagnostics (#120567)

This commit is contained in:
Mr. Bubbles 2024-06-26 14:59:14 +02:00 committed by GitHub
parent 7eb9875a9e
commit 43d686e0f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -2,7 +2,7 @@
# name: test_diagnostics
dict({
'config_entry_data': dict({
'host': 'pyload.local',
'host': '**REDACTED**',
'password': '**REDACTED**',
'port': 8000,
'ssl': True,