The problem
After updating to Core 2026.3.0, the Roborock integration is stuck in a persistent re-authentication loop. While the verification code is received and accepted by the UI, the backend fails to finalize the token exchange, resulting in a "parameter error - response code: 1002".
Environment
Home Assistant Core: 2026.3.0
Installation Type: Home Assistant OS 17.1
Python Version: 3.14 (bundled with 2026.3.x)
Integration: Roborock (Core)
Steps to Reproduce
Trigger the "Re-authenticate" repair flow.
Submit the email and enter the received verification code.
The UI displays a generic error or the "Authentication expired" notification returns within minutes.
Logs show the 1002 exception immediately following the code entry.
Logs:
2026-03-05 09:01:XX ERROR (MainThread) [homeassistant.components.roborock.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/roborock/config_flow.py", line 114, in async_step_code
user_data = await self._client.code_login_v4(code)
File "/usr/local/lib/python3.14/site-packages/roborock/web_api.py", line 348, in code_login_v4
raise RoborockException(f"{login_response.get('msg')} - response code: {response_code}")
roborock.exceptions.RoborockException: parameter error - response code: 1002
(Note: Log excerpt confirms the failure occurs during the code_login_v4 function call.)
Additional Information
The Roborock mobile app functions normally; this appears to be an API/handshake issue specific to the integration on Python 3.14.
Similar issues have been reported in previous version jumps where the underlying roborock library required updates for new API requirements.
I have verified that there are no pending EULAs or User Agreements to sign in the mobile app.
What version of Home Assistant Core has the issue?
2026.3.0
What was the last working version of Home Assistant Core?
2026.2.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Roborock
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The problem
After updating to Core 2026.3.0, the Roborock integration is stuck in a persistent re-authentication loop. While the verification code is received and accepted by the UI, the backend fails to finalize the token exchange, resulting in a "parameter error - response code: 1002".
Environment
Home Assistant Core: 2026.3.0
Installation Type: Home Assistant OS 17.1
Python Version: 3.14 (bundled with 2026.3.x)
Integration: Roborock (Core)
Steps to Reproduce
Trigger the "Re-authenticate" repair flow.
Submit the email and enter the received verification code.
The UI displays a generic error or the "Authentication expired" notification returns within minutes.
Logs show the 1002 exception immediately following the code entry.
Logs:
2026-03-05 09:01:XX ERROR (MainThread) [homeassistant.components.roborock.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/roborock/config_flow.py", line 114, in async_step_code
user_data = await self._client.code_login_v4(code)
File "/usr/local/lib/python3.14/site-packages/roborock/web_api.py", line 348, in code_login_v4
raise RoborockException(f"{login_response.get('msg')} - response code: {response_code}")
roborock.exceptions.RoborockException: parameter error - response code: 1002
(Note: Log excerpt confirms the failure occurs during the code_login_v4 function call.)
Additional Information
The Roborock mobile app functions normally; this appears to be an API/handshake issue specific to the integration on Python 3.14.
Similar issues have been reported in previous version jumps where the underlying roborock library required updates for new API requirements.
I have verified that there are no pending EULAs or User Agreements to sign in the mobile app.
What version of Home Assistant Core has the issue?
2026.3.0
What was the last working version of Home Assistant Core?
2026.2.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Roborock
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response