home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.15k stars 31.12k forks source link

Roborock - "roborock.exceptions.RoborockInvalidUserAgreement: User agreement must be accepted again" #129795

Open chris400 opened 4 weeks ago

chris400 commented 4 weeks ago

The problem

I have to re-authenticate the integration. The UI tells me it send a code via email, after pasting it the UI shows an error. There was an unknown roborock exception - please check your logs.

As a user I would expect that this error is caught and explained in the UI. Maybe even with a link to a resolution of something self-heal.

Currently I need to dive into the logs to find that cause.

What version of Home Assistant Core has the issue?

core-2024.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Roborock

Link to integration documentation on our website

https://www.home-assistant.io/integrations/roborock/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.roborock.config_flow
Source: components/roborock/config_flow.py:92
integration: Roborock (documentation, issues)
First occurred: 09:25:29 (4 occurrences)
Last logged: 09:33:24

Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/roborock/config_flow.py", line 92, in async_step_code
    login_data = await self._client.code_login(code)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/roborock/web_api.py", line 168, in code_login
    raise RoborockInvalidUserAgreement(
roborock.exceptions.RoborockInvalidUserAgreement: User agreement must be accepted again - or you are attempting to use the Mi Home app account.

Additional information

No response

home-assistant[bot] commented 4 weeks ago

Hey there @lash-l, mind taking a look at this issue as it has been labeled with an integration (roborock) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `roborock` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign roborock` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


roborock documentation roborock source (message by IssueLinks)

CarstenDennis commented 3 weeks ago

Same error and same fix for me when setting it up today.

rohmer commented 3 days ago

You can get around this by logging into the app on your phone and accepting the T&C