浏览代码

Fix device cache renew

Hal De 4 年之前
父节点
当前提交
607910f648
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -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'])