fix(compare-status): add old_value arg for callback signature

This commit is contained in:
2025-12-09 21:35:22 +01:00
parent fa51ffe33a
commit 19f9dba9f4
+2 -1
View File
@@ -264,11 +264,12 @@ class CompareStatus(SubscriptionStatus):
run=run,
)
def _compare_callback(self, value: any, **kwargs) -> bool:
def _compare_callback(self, old_value: any, value: any, **kwargs) -> bool:
"""
Callback for subscription status
Args:
old_value (any): Previous value of the signal
value (any): Current value of the signal
Returns: