From 4633e6ac9d1bae4ecc2e23eb87486086ba85b861 Mon Sep 17 00:00:00 2001
From: Armingol <pablo.armingolrobles@telefonica.com>
Date: Thu, 30 Nov 2023 16:40:02 +0100
Subject: [PATCH] code cleanup

---
 src/webui/service/device/routes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/webui/service/device/routes.py b/src/webui/service/device/routes.py
index c4d320f36..f59155b9f 100644
--- a/src/webui/service/device/routes.py
+++ b/src/webui/service/device/routes.py
@@ -64,8 +64,8 @@ def add():
         form.operational_status.choices.append(
             (DeviceOperationalStatusEnum.Value(key), key.replace('DEVICEOPERATIONALSTATUS_', '')))
     
-    form.device_type.choices = []
     # items for Device Type field
+    form.device_type.choices = []
     for device_type in DeviceTypeEnum:
         form.device_type.choices.append((device_type.value,device_type.value))    
 
-- 
GitLab