From 4d816ae87ccaeb015daa7421e1d1152a7ae324c2 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Mon, 3 Feb 2025 01:07:18 +1300 Subject: [PATCH] fix validation --- meshchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshchat.py b/meshchat.py index 11a3ae3..c6b0b81 100644 --- a/meshchat.py +++ b/meshchat.py @@ -668,7 +668,7 @@ class ReticulumMeshChat: missing_fields = [] required_subinterface_fields = ["name", "frequency", "bandwidth", "txpower", "spreadingfactor", "codingrate", "vport"] for field in required_subinterface_fields: - if field not in sub_interface or sub_interface.get(field) == "": + if field not in sub_interface or sub_interface.get(field) is None or sub_interface.get(field) == "": missing_fields.append(field) if missing_fields: return web.json_response({