Skip to content

Commit

Permalink
Redact unique id from diagnostics in blink (#106413)
Browse files Browse the repository at this point in the history
redact unique id
  • Loading branch information
mkmer authored and frenck committed Dec 27, 2023
1 parent 690f68c commit 04c0dc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/blink/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from .const import DOMAIN

TO_REDACT = {"serial", "macaddress", "username", "password", "token"}
TO_REDACT = {"serial", "macaddress", "username", "password", "token", "unique_id"}


async def async_get_config_entry_diagnostics(
Expand Down
1 change: 1 addition & 0 deletions tests/components/blink/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def mock_config_fixture():
"device_id": "Home Assistant",
"uid": "BlinkCamera_e1233333e2-0909-09cd-777a-123456789012",
"token": "A_token",
"unique_id": "an_email@email.com",
"host": "u034.immedia-semi.com",
"region_id": "u034",
"client_id": 123456,
Expand Down
1 change: 1 addition & 0 deletions tests/components/blink/snapshots/test_diagnostics.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'region_id': 'u034',
'token': '**REDACTED**',
'uid': 'BlinkCamera_e1233333e2-0909-09cd-777a-123456789012',
'unique_id': '**REDACTED**',
'username': '**REDACTED**',
}),
'disabled_by': None,
Expand Down

0 comments on commit 04c0dc7

Please sign in to comment.