From 660b9f81defceb65a28d7a99a2a7a9d4f8d4168d Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:34:11 +0000 Subject: [PATCH] Add more redactors for smartcams (#1439) `alias` and `ext_addr` are new fields found on `smartcam` child devices --- kasa/protocols/smartprotocol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kasa/protocols/smartprotocol.py b/kasa/protocols/smartprotocol.py index 28a20641..5af7a81b 100644 --- a/kasa/protocols/smartprotocol.py +++ b/kasa/protocols/smartprotocol.py @@ -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",