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:
parent
aae1dea181
commit
8432b87d75
4
wideq.py
4
wideq.py
@ -291,7 +291,9 @@ class Session(object):
|
|||||||
|
|
||||||
# Weirdly, the main response data is base64-encoded JSON.
|
# Weirdly, the main response data is base64-encoded JSON.
|
||||||
if 'returnData' in res:
|
if 'returnData' in res:
|
||||||
return json.loads(base64.b64decode(res['returnData']))
|
return json.loads(
|
||||||
|
base64.b64decode(res['returnData']).decode('utf8')
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user