1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-17 07:40:09 -07:00

Send strings to JSON

This commit is contained in:
Adrian Sampson 2018-01-21 13:30:44 -05:00
parent aae1dea181
commit 8432b87d75

View File

@ -291,7 +291,9 @@ class Session(object):
# Weirdly, the main response data is base64-encoded JSON.
if 'returnData' in res:
return json.loads(base64.b64decode(res['returnData']))
return json.loads(
base64.b64decode(res['returnData']).decode('utf8')
)
else:
return None