mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-30 18:46:24 +00:00
Add more redactors for smartcams (#1439)
`alias` and `ext_addr` are new fields found on `smartcam` child devices
This commit is contained in:
parent
2e3b1bc376
commit
660b9f81de
@ -61,8 +61,10 @@ REDACTORS: dict[str, Callable[[Any], Any] | None] = {
|
||||
"ip": lambda x: x, # don't redact but keep listed here for dump_devinfo
|
||||
# smartcam
|
||||
"dev_id": lambda x: "REDACTED_" + x[9::],
|
||||
"ext_addr": lambda x: "REDACTED_" + x[9::],
|
||||
"device_name": lambda x: "#MASKED_NAME#" if x else "",
|
||||
"device_alias": lambda x: "#MASKED_NAME#" if x else "",
|
||||
"alias": lambda x: "#MASKED_NAME#" if x else "", # child info on parent uses alias
|
||||
"local_ip": lambda x: x, # don't redact but keep listed here for dump_devinfo
|
||||
# robovac
|
||||
"board_sn": lambda _: "000000000000",
|
||||
|
Loading…
x
Reference in New Issue
Block a user