From 2303845a0264a24ed6f3a4a69ee66ad9d849ccae Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Thu, 8 Aug 2024 02:50:04 -0500 Subject: [PATCH] Added a value for future ContextRef version compatibility checks --- adv_control/control_reference.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adv_control/control_reference.py b/adv_control/control_reference.py index b3a0f5b..3bea56e 100644 --- a/adv_control/control_reference.py +++ b/adv_control/control_reference.py @@ -39,6 +39,7 @@ CONTEXTREF_MACHINE_STATE = "contextref_machine_state" CONTEXTREF_TEMP_COND_IDX = "contextref_temp_cond_idx" HIGHEST_VERSION_SUPPORT = 1 +RETURNED_CONTEXTREF_VERSION = 1 class RefConst: @@ -156,6 +157,7 @@ class ReferenceAdvanced(ControlBase, AdvancedControlBase): # ContextRef stuff self.is_context_ref = False self.contextref_cond_idx = -1 + self.contextref_version = RETURNED_CONTEXTREF_VERSION @property def ref_opts(self):