diff --git a/src/webui/service/device/routes.py b/src/webui/service/device/routes.py index ce15c7abaa527191e87dcaeee5b91599014c1e72..4459deeebd000642cfe235f4f46ebf65670ae2ee 100644 --- a/src/webui/service/device/routes.py +++ b/src/webui/service/device/routes.py @@ -65,6 +65,7 @@ def add(): (DeviceOperationalStatusEnum.Value(key), key.replace('DEVICEOPERATIONALSTATUS_', ''))) # 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))