Closed deevus closed 7 months ago
Would the fact that I didn't enter a valid email address be causing this?
EDIT: I did a re-init and used an email address. Same problem
More info from another attempt but from HA logs
Logger: custom_components.meross_cloud.config_flow
Source: custom_components/meross_cloud/config_flow.py:271
Integration: Meross Cloud IoT
First occurred: 1:29:06 PM (27 occurrences)
Last logged: 3:03:33 PM
Unable to connect to Meross HTTP api, ex: Failed request to API. Response code: 500
Traceback (most recent call last):
File "/config/custom_components/meross_cloud/config_flow.py", line 271, in async_step_configure_manager
creds = await self._test_authorization(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/meross_cloud/config_flow.py", line 360, in _test_authorization
client = await MerossHttpClient.async_from_user_password(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 117, in async_from_user_password
creds = await cls.async_login(email=email,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 246, in async_login
response_data = await MerossHttpClient._async_authenticated_post(url=url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 342, in _async_authenticated_post
raise AuthenticatedPostException("Failed request to API. Response code: %s" % str(response.status))
meross_iot.model.http.exception.AuthenticatedPostException: Failed request to API. Response code: 500
This is working with the new version
Describe the bug An error occurs trying to configure a new device
Your environment HomeAssistant version: 2023.11.0 Hassio Version (if applicable): 11.1 Hardware environment:
Logs taken when the issue happened