This commit is contained in:
+2
-1
@@ -183,7 +183,8 @@ class OperationMessageStatus:
|
||||
allowed = self.get_allowed()
|
||||
if value not in allowed:
|
||||
raise ValueError(f'value "{value}" is not from allowed values: {allowed}')
|
||||
self.pv_status.put(value)
|
||||
######################################################## sinon synchrone
|
||||
self.pv_status.put(value, wait=True)
|
||||
|
||||
def get_allowed(self):
|
||||
return ["OFFLINE", "PREPARATION", "REMOTE", "ATTENDED"]
|
||||
|
||||
Reference in New Issue
Block a user