diff --git a/helper/helper/__init__.py b/helper/helper/__init__.py index dfec1466..aa8527d9 100644 --- a/helper/helper/__init__.py +++ b/helper/helper/__init__.py @@ -89,7 +89,7 @@ def process( send(dict(kind="signal", status=status, body=body)) def success(response: RpcResponse): - send(dict(kind="success", body=response.body, flags=response.side_effects)) + send(dict(kind="success", body=response.body, flags=response.flags)) event = Event() cmd_queue: Queue = Queue(1) diff --git a/helper/helper/base.py b/helper/helper/base.py index 6f1b314f..62227350 100644 --- a/helper/helper/base.py +++ b/helper/helper/base.py @@ -28,9 +28,9 @@ decode_bytes = bytes.fromhex class RpcResponse: - def __init__(self, body, side_effects=None): + def __init__(self, body, flags=None): self.body = body - self.side_effects = side_effects or [] + self.flags = flags or [] class RpcException(Exception): diff --git a/helper/helper/device.py b/helper/helper/device.py index 47c7fbca..dbf72de5 100644 --- a/helper/helper/device.py +++ b/helper/helper/device.py @@ -263,7 +263,7 @@ class AbstractDeviceNode(RpcNode): def __call__(self, *args, **kwargs): try: response = super().__call__(*args, **kwargs) - if "device_info" in response.side_effects: + if "device_info" in response.flags: # Clear DeviceInfo cache self._info = None self._data = None