mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-08-11 00:20:40 +02:00
fix(compare-status): add old_value arg for callback signature
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user