From 02e2b9de943c118e2428ede755d8890a30561189 Mon Sep 17 00:00:00 2001 From: Thomas Stallinger Date: Tue, 14 Jul 2026 13:04:39 +0200 Subject: [PATCH] refactor: expose device registration status --- app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index dd47bba..ab7d5f0 100644 --- a/app.py +++ b/app.py @@ -320,7 +320,11 @@ def activate(payload: ActivationRequest, request: Request): "id": device["id"], "fingerprint": device["device_fingerprint"], "hostname": device["hostname"], - "created": device_created, + "registration_status": ( + "registered" + if device_created + else "existing" + ), "hardware_snapshot_id": hardware_snapshot_id, },