From 7ab4516c972f95c65e2633d34c598c0750d18ce6 Mon Sep 17 00:00:00 2001 From: Emmanuel Levijarvi Date: Thu, 9 Oct 2025 19:44:57 -0700 Subject: [PATCH 1/4] Potential fix for code scanning alert no. 43: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- examples/test_mqtt_messaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/test_mqtt_messaging.py b/examples/test_mqtt_messaging.py index 9c38f37..623d07d 100644 --- a/examples/test_mqtt_messaging.py +++ b/examples/test_mqtt_messaging.py @@ -122,7 +122,7 @@ def message_handler(topic: str, message: dict): await mqtt_client.subscribe(topic, message_handler) print(f" ✅ Subscribed to: {topic}") except Exception as e: - print(f" ⚠️ Failed to subscribe to {topic}: {e}") + print(f" ⚠️ Failed to subscribe to device topic (type: {device_type}): {e}") print() From 211c42d4e263061d133fc59a6593b0df500288ab Mon Sep 17 00:00:00 2001 From: Emmanuel Levijarvi Date: Thu, 9 Oct 2025 20:04:41 -0700 Subject: [PATCH 2/4] Update __init__.py --- src/nwp500/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nwp500/__init__.py b/src/nwp500/__init__.py index c384bc5..dde7ecf 100644 --- a/src/nwp500/__init__.py +++ b/src/nwp500/__init__.py @@ -1,4 +1,3 @@ -import sys from importlib.metadata import PackageNotFoundError, version # pragma: no cover try: From 1e79a16ff5ebd28f1d18e4aa1d724a38e5fe8b56 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 10 Oct 2025 03:05:40 +0000 Subject: [PATCH 3/4] Initial plan From 221ceae38eafcf0378be303f549ce2abfa90769a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 10 Oct 2025 03:09:53 +0000 Subject: [PATCH 4/4] Fix formatting issue in test_mqtt_messaging.py Co-authored-by: eman <19387+eman@users.noreply.github.com> --- examples/test_mqtt_messaging.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/test_mqtt_messaging.py b/examples/test_mqtt_messaging.py index 623d07d..7a04d73 100644 --- a/examples/test_mqtt_messaging.py +++ b/examples/test_mqtt_messaging.py @@ -122,7 +122,9 @@ def message_handler(topic: str, message: dict): await mqtt_client.subscribe(topic, message_handler) print(f" ✅ Subscribed to: {topic}") except Exception as e: - print(f" ⚠️ Failed to subscribe to device topic (type: {device_type}): {e}") + print( + f" ⚠️ Failed to subscribe to device topic (type: {device_type}): {e}" + ) print()