Skip to content

Commit

Permalink
Fix for Auth 1004 Error
Browse files Browse the repository at this point in the history
  • Loading branch information
eracknaphobia committed Apr 13, 2018
1 parent bfea9bf commit 8f3bf0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sucks/__init__.py
Expand Up @@ -41,7 +41,9 @@ def __init__(self, device_id, account_id, password_hash, country, continent):
self.auth_code = self.__call_main_api('user/getAuthCode',
('uid', self.uid),
('accessToken', self.login_access_token))['authCode']
self.user_access_token = self.__call_login_by_it_token()['token']
login_response = self.__call_login_by_it_token()
self.user_access_token = login_response['token']
self.uid = login_response['userId']
logging.debug("EcoVacsAPI connection complete")

def __sign(self, params):
Expand Down

0 comments on commit 8f3bf0a

Please sign in to comment.