w
This commit is contained in:
@@ -158,6 +158,7 @@ class StatusBitsCompareStatus(SubscriptionStatus):
|
||||
|
||||
def _compare_callback(self, *args, value, **kwargs) -> bool:
|
||||
"""Callback for subscription status"""
|
||||
logger.info(f"StatusBitsCompareStatus: Received value {STATUSBITS(value).describe()}")
|
||||
obj = kwargs.get("obj", None)
|
||||
if obj is None:
|
||||
name = "no object received"
|
||||
@@ -172,7 +173,9 @@ class StatusBitsCompareStatus(SubscriptionStatus):
|
||||
return False
|
||||
if self._add_delay != 0:
|
||||
time.sleep(self._add_delay)
|
||||
|
||||
logger.info(
|
||||
f"Returning comparison for {name}: {(STATUSBITS(value) & self._value) == self._value}"
|
||||
)
|
||||
return (STATUSBITS(value) & self._value) == self._value
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user