From 7bad2da0d4e9f1685a53527684cb0e91b3032260 Mon Sep 17 00:00:00 2001 From: ndrsnhs Date: Thu, 21 Aug 2025 15:26:52 +0200 Subject: [PATCH] improve debug --- packages/helpermodules/create_debug.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/helpermodules/create_debug.py b/packages/helpermodules/create_debug.py index 9c7682be2e..51d912bbda 100644 --- a/packages/helpermodules/create_debug.py +++ b/packages/helpermodules/create_debug.py @@ -33,7 +33,15 @@ def get_common_data(): ip_address = subdata.SubData.system_data["system"].data["ip_address"] except Exception: ip_address = None + try: + updateAvailable = subdata.SubData.system_data["system"].data["current_branch_commit"] and \ + subdata.SubData.system_data["system"].data["current_branch_commit"] != \ + subdata.SubData.system_data["system"].data["current_commit"] + except Exception: + updateAvailable = False + with ErrorHandlingContext(): + parsed_data += f"Firmware_deprecated: {updateAvailable}\n" with ErrorHandlingContext(): parent_file = Path(__file__).resolve().parents[2] with open(f"{parent_file}/web/version", "r") as f: