diff --git a/bec_lib/bec_lib/config_helper.py b/bec_lib/bec_lib/config_helper.py index ff0137f6b..2d0039798 100644 --- a/bec_lib/bec_lib/config_helper.py +++ b/bec_lib/bec_lib/config_helper.py @@ -167,8 +167,10 @@ def send_config_request( Returns: request ID (str) """ - if action in ["update", "add", "set"] and not config: + if action in ["update", "add"] and not config: raise DeviceConfigError(f"Config cannot be empty for an {action} request.") + if action == "set": + config = config or {} # coerce None RID = str(uuid.uuid4()) self.connector.send( MessageEndpoints.device_config_request(),