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 |
Helpers to redact Google Assistant data when logging.
| 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.
| 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.
| 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.
| 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.
| 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.
| list homeassistant.components.google_assistant.data_redaction.MDNS_TXT_TO_REDACT |
Definition at line 18 of file data_redaction.py.