fix bugs introduce today
This commit is contained in:
parent
796e0fab8b
commit
0636b68fb0
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ async def _handle_appsvr_app(request: Request) -> Response:
|
|||
def _include_product_iot_map_info(bot: dict[str, Any]) -> dict[str, Any]:
|
||||
result = copy.deepcopy(bot)
|
||||
|
||||
for botprod in get_product_iot_map():
|
||||
for botprod in get_product_iot_map()[0]:
|
||||
if botprod["classid"] == result["class"]:
|
||||
result["UILogicId"] = botprod["product"]["UILogicId"]
|
||||
result["ota"] = botprod["product"]["ota"]
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ async def _handle_usersapi(request: Request) -> Response:
|
|||
}
|
||||
else: # EcoVacs Home LoginByITToken
|
||||
login_token = loginByItToken(postbody["token"])
|
||||
if not login_token:
|
||||
if login_token:
|
||||
body = {
|
||||
"resource": postbody["resource"],
|
||||
"result": "ok",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue