Redact unique id from diagnostics in blink (#106413)

redact unique id
pull/106460/head
mkmer 2023-12-26 10:16:54 -05:00 committed by Franck Nijhof
parent 690f68c571
commit 04c0dc7d91
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
3 changed files with 3 additions and 1 deletions

View File

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

View File

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

View File

@ -34,6 +34,7 @@
'region_id': 'u034',
'token': '**REDACTED**',
'uid': 'BlinkCamera_e1233333e2-0909-09cd-777a-123456789012',
'unique_id': '**REDACTED**',
'username': '**REDACTED**',
}),
'disabled_by': None,