python-roborock 2.18.2__tar.gz → 2.19.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_roborock-2.18.2 → python_roborock-2.19.0}/PKG-INFO +1 -1
- {python_roborock-2.18.2 → python_roborock-2.19.0}/pyproject.toml +1 -1
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/code_mappings.py +1 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/web_api.py +6 -1
- {python_roborock-2.18.2 → python_roborock-2.19.0}/LICENSE +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/README.md +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/__init__.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/api.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/cli.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/cloud_api.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/command_cache.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/const.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/containers.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/exceptions.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/local_api.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/mqtt/__init__.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/mqtt/roborock_session.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/mqtt/session.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/protocol.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/py.typed +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/roborock_future.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/roborock_message.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/roborock_typing.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/util.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_1_apis/__init__.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_1_apis/roborock_client_v1.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_1_apis/roborock_local_client_v1.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_1_apis/roborock_mqtt_client_v1.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_a01_apis/__init__.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_a01_apis/roborock_client_a01.py +0 -0
- {python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_a01_apis/roborock_mqtt_client_a01.py +0 -0
|
@@ -68,11 +68,12 @@ class RoborockApiClient:
|
|
|
68
68
|
raise RoborockUrlException("get url by email returned None")
|
|
69
69
|
response_code = response.get("code")
|
|
70
70
|
if response_code != 200:
|
|
71
|
+
_LOGGER.info("Get base url failed for %s with the following context: %s", self._username, response)
|
|
71
72
|
if response_code == 2003:
|
|
72
73
|
raise RoborockInvalidEmail("Your email was incorrectly formatted.")
|
|
73
74
|
elif response_code == 1001:
|
|
74
75
|
raise RoborockMissingParameters(
|
|
75
|
-
"You are missing parameters for this request, are you sure you
|
|
76
|
+
"You are missing parameters for this request, are you sure you entered your username?"
|
|
76
77
|
)
|
|
77
78
|
elif response_code == 9002:
|
|
78
79
|
raise RoborockTooManyRequest("Please temporarily disable making requests and try again later.")
|
|
@@ -214,6 +215,7 @@ class RoborockApiClient:
|
|
|
214
215
|
raise RoborockException("Failed to get a response from send email code")
|
|
215
216
|
response_code = code_response.get("code")
|
|
216
217
|
if response_code != 200:
|
|
218
|
+
_LOGGER.info("Request code failed for %s with the following context: %s", self._username, code_response)
|
|
217
219
|
if response_code == 2008:
|
|
218
220
|
raise RoborockAccountDoesNotExist("Account does not exist - check your login and try again.")
|
|
219
221
|
elif response_code == 9002:
|
|
@@ -243,6 +245,7 @@ class RoborockApiClient:
|
|
|
243
245
|
if login_response is None:
|
|
244
246
|
raise RoborockException("Login response is none")
|
|
245
247
|
if login_response.get("code") != 200:
|
|
248
|
+
_LOGGER.info("Login failed for %s with the following context: %s", self._username, login_response)
|
|
246
249
|
raise RoborockException(f"{login_response.get('msg')} - response code: {login_response.get('code')}")
|
|
247
250
|
user_data = login_response.get("data")
|
|
248
251
|
if not isinstance(user_data, dict):
|
|
@@ -282,6 +285,7 @@ class RoborockApiClient:
|
|
|
282
285
|
raise RoborockException("Login request response is None")
|
|
283
286
|
response_code = login_response.get("code")
|
|
284
287
|
if response_code != 200:
|
|
288
|
+
_LOGGER.info("Login failed for %s with the following context: %s", self._username, login_response)
|
|
285
289
|
if response_code == 2018:
|
|
286
290
|
raise RoborockInvalidCode("Invalid code - check your code and try again.")
|
|
287
291
|
if response_code == 3009:
|
|
@@ -308,6 +312,7 @@ class RoborockApiClient:
|
|
|
308
312
|
if home_id_response is None:
|
|
309
313
|
raise RoborockException("home_id_response is None")
|
|
310
314
|
if home_id_response.get("code") != 200:
|
|
315
|
+
_LOGGER.info("Get Home Id failed with the following context: %s", home_id_response)
|
|
311
316
|
if home_id_response.get("code") == 2010:
|
|
312
317
|
raise RoborockInvalidCredentials(
|
|
313
318
|
f"Invalid credentials ({home_id_response.get('msg')}) - check your login and try again."
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_1_apis/roborock_client_v1.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_1_apis/roborock_mqtt_client_v1.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-2.18.2 → python_roborock-2.19.0}/roborock/version_a01_apis/roborock_client_a01.py
RENAMED
|
File without changes
|
|
File without changes
|