From 007f30a786cfddc2507cd8bc662069e248ddd833 Mon Sep 17 00:00:00 2001 From: Quentin WEPHRE Date: Thu, 26 Mar 2026 08:47:15 +0100 Subject: [PATCH] added subsite tag --- Python/azure_iot_hub_list_devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/azure_iot_hub_list_devices.py b/Python/azure_iot_hub_list_devices.py index b622e26..1405c9b 100644 --- a/Python/azure_iot_hub_list_devices.py +++ b/Python/azure_iot_hub_list_devices.py @@ -30,6 +30,7 @@ for twin in query_result.items: "device_id": twin.device_id, "number": twin.tags.get("number") if twin.tags else None, "site": twin.tags.get("site") if twin.tags else None, + "subsite": twin.tags.get("subsite") if twin.tags else None, "connection_state": twin.connection_state, "last_activity_time": twin.last_activity_time }) @@ -60,4 +61,4 @@ if "last_activity_time" in df_sorted.columns: ) -df_sorted.to_excel("iot_devices.xlsx", index=False) \ No newline at end of file +df_sorted.to_excel("iot_devices_20260204.xlsx", index=False) \ No newline at end of file