Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_assistant.data_redaction Namespace Reference

Functions

dict[str, Any] async_redact_msg (dict[str, Any] msg, str agent_user_id)
 
list[str] partial_redact_list_item (list[str] x, list[str] to_redact)
 
str partial_redact_string (str x, str to_redact)
 
dict[str, str] partial_redact_txt_dict (dict[str, str] x)
 
list[str] partial_redact_txt_list (list[str] x)
 

Variables

list MDNS_TXT_TO_REDACT
 

Detailed Description

Helpers to redact Google Assistant data when logging.

Function Documentation

◆ async_redact_msg()

dict[str, Any] homeassistant.components.google_assistant.data_redaction.async_redact_msg ( dict[str, Any]  msg,
str  agent_user_id 
)
Mask sensitive data in message.

Definition at line 68 of file data_redaction.py.

◆ partial_redact_list_item()

list[str] homeassistant.components.google_assistant.data_redaction.partial_redact_list_item ( list[str]  x,
list[str]  to_redact 
)
Redact only specified string in a list of strings.

Definition at line 27 of file data_redaction.py.

◆ partial_redact_string()

str homeassistant.components.google_assistant.data_redaction.partial_redact_string ( str  x,
str  to_redact 
)
Redact only a specified string.

Definition at line 60 of file data_redaction.py.

◆ partial_redact_txt_dict()

dict[str, str] homeassistant.components.google_assistant.data_redaction.partial_redact_txt_dict ( dict[str, str]  x)
Redact strings from home-assistant mDNS txt records.

Definition at line 50 of file data_redaction.py.

◆ partial_redact_txt_list()

list[str] homeassistant.components.google_assistant.data_redaction.partial_redact_txt_list ( list[str]  x)
Redact strings from home-assistant mDNS txt records.

Definition at line 45 of file data_redaction.py.

Variable Documentation

◆ MDNS_TXT_TO_REDACT

list homeassistant.components.google_assistant.data_redaction.MDNS_TXT_TO_REDACT
Initial value:
1 = [
2  "location_name",
3  "uuid",
4  "external_url",
5  "internal_url",
6  "base_url",
7 ]

Definition at line 18 of file data_redaction.py.