CodeFoodPixels / robovac

Add a Eufy RoboVac easily to Home Assistant
Other
110 stars 26 forks source link

Unexpected Error on Login #11

Closed jwilldwill closed 10 months ago

jwilldwill commented 10 months ago

Just added this integration into HACS and upon login I receive "Unexpected Error". Verified my login is correct Screenshot 2023-08-17 at 5 15 57 PM

CodeFoodPixels commented 10 months ago

Is there anything in the logs?

jwilldwill commented 10 months ago

This error originated from a custom integration.

Logger: custom_components.robovac.config_flow Source: custom_components/robovac/tuyawebapi.py:165 Integration: Eufy Robovac (documentation, issues) First occurred: 6:52:13 PM (1 occurrences) Last logged: 6:52:13 PM

Unexpected exception Traceback (most recent call last): File "/config/custom_components/robovac/config_flow.py", line 130, in async_step_user valid_data = await validate_input(self.hass, user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/robovac/config_flow.py", line 112, in validate_input await hass.async_add_executor_job(get_eufy_vacuums, data) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/robovac/config_flow.py", line 102, in get_eufy_vacuums for home in tuya_client.list_homes(): ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/robovac/tuyawebapi.py", line 216, in list_homes return self._request(action="tuya.m.location.list", version="2.1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/robovac/tuyawebapi.py", line 141, in _request self.acquire_session() File "/config/custom_components/robovac/tuyawebapi.py", line 211, in acquire_session session_response = self.request_session(self.username, self.country_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/robovac/tuyawebapi.py", line 203, in request_session session_response = self._request( ^^^^^^^^^^^^^^ File "/config/custom_components/robovac/tuyawebapi.py", line 165, in _request raise Exception( Exception: No 'result' key in the response - the entire response is {'t': 1692316332957, 'success': False, 'errorCode': 'USER_PASSWD_WRONG', 'status': 'error', 'errorMsg': 'Incorrect account ID or password'}.

DerBaer1986 commented 10 months ago

Same here

CodeFoodPixels commented 10 months ago

This is the same as #2.

There's a fix in the latest beta release: https://github.com/CodeFoodPixels/robovac/releases/tag/v1.1.0.beta.1