diff --git a/homeassistant/components/blink/diagnostics.py b/homeassistant/components/blink/diagnostics.py index f69c1721bf1..664d1421ac2 100644 --- a/homeassistant/components/blink/diagnostics.py +++ b/homeassistant/components/blink/diagnostics.py @@ -11,7 +11,7 @@ from homeassistant.core import HomeAssistant 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( diff --git a/tests/components/blink/conftest.py b/tests/components/blink/conftest.py index 946840c23b9..d7deaf39bd9 100644 --- a/tests/components/blink/conftest.py +++ b/tests/components/blink/conftest.py @@ -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, diff --git a/tests/components/blink/snapshots/test_diagnostics.ambr b/tests/components/blink/snapshots/test_diagnostics.ambr index 7fb13c97548..b572aae0a00 100644 --- a/tests/components/blink/snapshots/test_diagnostics.ambr +++ b/tests/components/blink/snapshots/test_diagnostics.ambr @@ -34,6 +34,7 @@ 'region_id': 'u034', 'token': '**REDACTED**', 'uid': 'BlinkCamera_e1233333e2-0909-09cd-777a-123456789012', + 'unique_id': '**REDACTED**', 'username': '**REDACTED**', }), 'disabled_by': None,