mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 11:13:34 +00:00
Scrub more vacuum keys (#1328)
This commit is contained in:
parent
9966c6094a
commit
74b59d7f98
@ -115,6 +115,10 @@ def scrub(res):
|
|||||||
"encrypt_info",
|
"encrypt_info",
|
||||||
"local_ip",
|
"local_ip",
|
||||||
"username",
|
"username",
|
||||||
|
# vacuum
|
||||||
|
"board_sn",
|
||||||
|
"custom_sn",
|
||||||
|
"location",
|
||||||
]
|
]
|
||||||
|
|
||||||
for k, v in res.items():
|
for k, v in res.items():
|
||||||
@ -153,7 +157,13 @@ def scrub(res):
|
|||||||
v = base64.b64encode(b"#MASKED_SSID#").decode()
|
v = base64.b64encode(b"#MASKED_SSID#").decode()
|
||||||
elif k in ["nickname"]:
|
elif k in ["nickname"]:
|
||||||
v = base64.b64encode(b"#MASKED_NAME#").decode()
|
v = base64.b64encode(b"#MASKED_NAME#").decode()
|
||||||
elif k in ["alias", "device_alias", "device_name", "username"]:
|
elif k in [
|
||||||
|
"alias",
|
||||||
|
"device_alias",
|
||||||
|
"device_name",
|
||||||
|
"username",
|
||||||
|
"location",
|
||||||
|
]:
|
||||||
v = "#MASKED_NAME#"
|
v = "#MASKED_NAME#"
|
||||||
elif isinstance(res[k], int):
|
elif isinstance(res[k], int):
|
||||||
v = 0
|
v = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user