Roborock Integration unexpected error

Hi there,
I am having some trouble with the Roborock Integration. At first, it worked perfectly for weeks, then somehow I got a error message. I tried deleting the integration and reconfiguring it, but now I get an “unexpected error message” after entering the confirmation code. I also tried different email addresses to make sure the error wasn’t related to my account, but the unexpected error message occurs with all email addresses I tried. I also tried the troubleshooting steps listed in the official documentation (revoke authorization), but that didn’t help either.

Restoring a backup is not an option at this time, as the error first occurred two weeks ago and I have made some changes in HA since then that I don’t want to lose.

Is there a way to delete the existing data from the integration so I can start over? It wouldn’t be a big deal to lose the integration data and start from scratch if that’s the best way to go.

Btw, my vacuum is a Qrevo MaxV and a S5 Max. Controlling it via the app works fine.

Here is the log file from Home Assistant:

Logger: homeassistant.components.roborock.config_flow
Quelle: components/roborock/config_flow.py:114
Integration: Roborock (Dokumentation, Probleme)
Erstmals aufgetreten: 13:27:33 (2 Vorkommnisse)
Zuletzt protokolliert: 13:30:37

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.13/site-packages/roborock/web_api.py", line 312, in code_login_v4
    login_response = await login_request.request(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<12 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/roborock/web_api.py", line 652, in request
    async with session.request(method, _url, params=params, data=data, headers=_headers, json=json) as resp:
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1488, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 693, in _request
    req = self._request_class(
        method,
    ...<21 lines>...
        trust_env=self.trust_env,
    )
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 866, in __init__
    url = url.extend_query(params)
  File "/usr/local/lib/python3.13/site-packages/yarl/_url.py", line 1206, in extend_query
    if not (new_query := get_str_query(*args, **kwargs)):
                         ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/yarl/_query.py", line 97, in get_str_query
    return get_str_query_from_sequence_iterable(query.items())
  File "/usr/local/lib/python3.13/site-packages/yarl/_query.py", line 51, in get_str_query_from_sequence_iterable
    f"{quoter(k)}={quoter(v if type(v) is str else query_var(v))}"
                                                   ~~~~~~~~~^^^
  File "/usr/local/lib/python3.13/site-packages/yarl/_query.py", line 33, in query_var
    raise TypeError(
    ...<3 lines>...
    )
TypeError: Invalid variable type: value should be str, int or float, got None of type <class 'NoneType'>

Thanks in advance for your help!

1 Like

Same for me. After I added a new vacuum I can no longer activate integration.

Logs: TypeError: Invalid variable type: value should be str, int or float, got None of type <class ‘NoneType’>

This might be a bug, so I’d post an issue in github for it.Developers are not likely to see it here.

1 Like

Thanks @Edwin_D.
Issue is posted: Roborock Integration - unexpected error (TypeError: Invalid variable type) · Issue #155707 · home-assistant/core