@@ -41,7 +41,7 @@ async def _dorequest(self, reqtype, urlsuffix, data=None):
41
41
# which isn't in our account
42
42
# 404 - Can't find API endpoint
43
43
# 424 - If one or multiple Slides are offline. The 'device_info'
44
- # will contain ' 500 Device unavailable' for those slides
44
+ # will contain code= 500, ' Device unavailable' for those slides
45
45
# aiohttp.client_exceptions.ClientConnectorError: No IP, timeout
46
46
47
47
async with aiohttp .request (reqtype ,
@@ -128,6 +128,8 @@ async def login(self):
128
128
if 'access_token' in result :
129
129
self ._authenticated = True
130
130
self ._accesstoken = result ['access_token' ]
131
+
132
+ # Token format is in UTC
131
133
if 'expires_at' in result :
132
134
self ._expiretoken = \
133
135
datetime .strptime (result ['expires_at' ] + ' +0000' ,
@@ -173,7 +175,23 @@ async def slidesoverview(self):
173
175
# },
174
176
# "routines": [],
175
177
# },
176
- # {...},
178
+ # {
179
+ # "id": 2,
180
+ # "device_name": "Study Room",
181
+ # "slide_setup": "middle",
182
+ # "curtain_type": "rail",
183
+ # "device_id": "slide_300000000001",
184
+ # "household_id": 1,
185
+ # "zone_id": 2,
186
+ # "touch_go": false,
187
+ # "device_info": {
188
+ # "message": "No response from device.",
189
+ # "code": 500
190
+ # },
191
+ # "routines": {
192
+ # "message": "No response from device.",
193
+ # "code": 500
194
+ # },
177
195
# {...},
178
196
# ]
179
197
# }
0 commit comments