Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
should fix And3rsL/Deebot-for-Home-Assistant#139
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus committed Jul 2, 2021
1 parent c56eddb commit 3b40961
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deebotozmo/ecovacs_api.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import aiohttp
import logging
import time
from aiohttp import hdrs
from dataclasses import dataclass
from typing import Union, Optional, List

import aiohttp
from aiohttp import hdrs

from deebotozmo.models import Vacuum, RequestAuth
from deebotozmo.util import str_to_bool_or_cert, md5

Expand Down Expand Up @@ -180,6 +181,9 @@ async def __call_login_api(self, account_id: str, password_hash: str):

url = (EcovacsAPI.MAIN_URL_FORMAT + "/user/login").format(**self.meta)

if self.country.lower() == "cn":
url += "CheckMobile"

return await self.__do_auth_response(url, self.__sign(params))

async def __call_auth_api(self, access_token: str, user_id: str):
Expand Down

0 comments on commit 3b40961

Please sign in to comment.