|
|
@@ -557,7 +557,8 @@ async def refreshStatesCache():
|
|
|
return len(app.cache['ustates'])
|
|
|
|
|
|
async def refreshDevicesCache():
|
|
|
- aors = await amiPJSIPShowAors()
|
|
|
+ _reply = await amiPJSIPShowAors()
|
|
|
+ aors = _reply['data']
|
|
|
app.cache['devices'] = list(aors.keys())
|
|
|
return len(app.cache['devices'])
|
|
|
|