mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
fix: monitor_config_validator.py fix entry validation executed only if name validator is successful
This commit is contained in:
@ -53,7 +53,10 @@ class Signal(BaseModel):
|
||||
|
||||
# Get device name from values -> device is already validated
|
||||
device_name = values.data.get("name")
|
||||
if device_name is not None:
|
||||
device = getattr(devices, device_name, None)
|
||||
else: # if device is not in bec than validator_name return None and entry validation is not executed
|
||||
return
|
||||
|
||||
# Set entry based on hints if not provided
|
||||
if v is None and hasattr(device, "_hints"):
|
||||
|
Reference in New Issue
Block a user