Skip to content

Roborock not setting up in 2025.12.0b0 #157366

@luca-angemi

Description

@luca-angemi

The problem

In the logs

2025-11-26 18:55:32.057 ERROR (SyncWorker_10) [homeassistant.util.json] JSON file reading failed: /config/.storage/roborock/01K7BATG1321YN56TKYVNT3NB8
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 72, in load_json
    with open(filename, mode="rb") as fdesc:
         ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
IsADirectoryError: [Errno 21] Is a directory: '/config/.storage/roborock/01K7BATG1321YN56TKYVNT3NB8'
2025-11-26 18:55:32.063 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry luca.angemi@gmail.com for roborock
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 72, in load_json
    with open(filename, mode="rb") as fdesc:
         ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
IsADirectoryError: [Errno 21] Is a directory: '/config/.storage/roborock/01K7BATG1321YN56TKYVNT3NB8'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/roborock/__init__.py", line 54, in async_setup_entry
    device_manager = await create_device_manager(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/roborock/devices/device_manager.py", line 205, in create_device_manager
    await manager.discover_devices()
  File "/usr/local/lib/python3.13/site-packages/roborock/devices/device_manager.py", line 73, in discover_devices
    cache_data = await self._cache.get()
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/roborock/roborock_storage.py", line 69, in get
    if data := await self._cache_store.async_load():
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 307, in async_load
    result = await self._async_load()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 327, in _async_load
    return await self._async_load_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 348, in _async_load_data
    data = await self.hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        json_util.load_json, self.path
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 82, in load_json
    raise HomeAssistantError(f"Error while loading {filename}: {error}") from error
homeassistant.exceptions.HomeAssistantError: Error while loading /config/.storage/roborock/01K7BATG1321YN56TKYVNT3NB8: [Errno 21] Is a directory: '/config/.storage/roborock/01K7BATG1321YN56TKYVNT3NB8'

What version of Home Assistant Core has the issue?

2025.12.0b0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

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

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions