From 9a25bdf7d50c207195d5a8b21dcce15bb84feae9 Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:43:23 +0000 Subject: [PATCH] Mask hw_id and fw_id --- kasa/protocols/smartprotocol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kasa/protocols/smartprotocol.py b/kasa/protocols/smartprotocol.py index 03ad847c..aab7ae11 100644 --- a/kasa/protocols/smartprotocol.py +++ b/kasa/protocols/smartprotocol.py @@ -50,6 +50,8 @@ REDACTORS: dict[str, Callable[[Any], Any] | None] = { "bssid": lambda _: "000000000000", "channel": lambda _: 0, "oem_id": lambda x: "REDACTED_" + x[9::], + "hw_id": lambda x: "REDACTED_" + x[9::], + "fw_id": lambda x: "REDACTED_" + x[9::], "setup_code": lambda x: re.sub(r"\w", "0", x), # matter "setup_payload": lambda x: re.sub(r"\w", "0", x), # matter "mfi_setup_code": lambda x: re.sub(r"\w", "0", x), # mfi_ for homekit