From 72b3b4c52556d3b1cc49eeefb230b346a22c49a2 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 21 Apr 2018 10:50:28 -0400 Subject: [PATCH] Update a comment --- wideq.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wideq.py b/wideq.py index ddbf796..c6f1bec 100644 --- a/wideq.py +++ b/wideq.py @@ -304,8 +304,10 @@ class Session(object): work_list = [{'deviceId': device_id, 'workId': work_id}] res = self.post('rti/rtiResult', {'workList': work_list})['workList'] - # Weirdly, the main response data is base64-encoded JSON. if 'returnData' in res: + # The main response payload is base64-encoded binary data in + # the `returnData` field. This sometimes contains JSON data + # and sometimes other binary data. return base64.b64decode(res['returnData']) else: return None