8000 Scrub more vacuum keys (#1328) · python-kasa/python-kasa@74b59d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74b59d7

Browse files
authored
Scrub more vacuum keys (#1328)
1 parent 9966c60 commit 74b59d7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

devtools/dump_devinfo.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ def scrub(res):
115115
"encrypt_info",
116116
"local_ip",
117117
"username",
118+
# vacuum
119+
"board_sn",
120+
"custom_sn",
121+
"location",
118122
]
119123

120124
for k, v in res.items():
@@ -153,7 +157,13 @@ def scrub(res):
153157
v = base64.b64encode(b"#MASKED_SSID#").decode()
154158
elif k in ["nickname"]:
155159
v = base64.b64encode(b"#MASKED_NAME#").decode()
156-
elif k in ["alias", "device_alias", "device_name", "username"]:
160+
elif k in [
161+
"alias",
162+
"device_alias",
163+
"device_name",
164+
"username",
165+
"location",
166+
]:
157167
v = "#MASKED_NAME#"
158168
elif isinstance(res[k], int):
159169
v = 0

0 commit comments

Comments
 (0)
0