-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Roborock setup fails with construct #94197
Description
The problem
Logger: homeassistant.config_entries
Source: components/roborock/init.py:45
First occurred: 7:37:43 AM (8 occurrences)
Last logged: 10:49:00 AM
Error setting up entry xxxxxxxx@gmail.com for roborock
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/roborock/init.py", line 45, in async_setup_entry
network_results = await asyncio.gather(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/util.py", line 89, in wrapped
raise e
File "/usr/local/lib/python3.11/site-packages/roborock/util.py", line 85, in wrapped
last_run_result = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 357, in get_networking
return await self.send_command(RoborockCommand.GET_NETWORK_INFO, return_type=NetworkInfo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/cloud_api.py", line 165, in send_command
msg = MessageParser.build(roborock_message, local_key, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/protocol.py", line 342, in build
return self.con.build({"messages": [message for message in messages]}, local_key=local_key, prefixed=prefixed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 352, in build
self.build_stream(obj, stream, **contextkw)
File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 364, in build_stream
self._build(obj, stream, context, "(building)")
File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 1998, in _build
subobj = obj[sc.name] # raises KeyError
~~~^^^^^^^^^
KeyError: 'remaining'
What version of Home Assistant Core has the issue?
2023.6.0
What was the last working version of Home Assistant Core?
2023.5.4
What type of installation are you running?
Home Assistant Supervised
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?
No response
Additional information
No response