ZWave unavailable / Upgrade from 2023.7.2 to 2024.10.3

I have this error:

2024-10-25 17:49:31.128 ERROR (MainThread) [homeassistant.config_entries] Error importing platform config_flow from integration zwave_js to set up zwave_js configuration entry: Platform zwave_js.config_flow not found
2024-10-25 17:49:35.932 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration zwave_js: Platform zwave_js.config_flow not found

ZWave JS is available:

homeassistant:~/.homeassistant$ telnet localhost 3000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

(ZWave JS outputs a lot of info from the devices, as before).

More details from home-assistant.log:

2024-10-25 17:49:36.075 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/config_entries.py", line 2943, in _load_integration
    await integration.async_get_platform("config_flow")
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/loader.py", line 1100, in async_get_platform
    platforms = await self.async_get_platforms((platform_name,))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/loader.py", line 1116, in async_get_platforms
    if platform := self._get_platform_cached_or_raise(platform_name):
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/loader.py", line 1207, in _get_platform_cached_or_raise
    raise ModuleNotFoundError(
    ...<2 lines>...
    )
ModuleNotFoundError: Platform zwave_js.config_flow not found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/config_entries.py", line 1287, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/config_entries.py", line 1312, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/config_entries.py", line 1499, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self.hass, handler_key, self._hass_config
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/config_entries.py", line 2964, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/home/homeassistant/lib/python3.13/site-packages/homeassistant/config_entries.py", line 2950, in _load_integration
    raise data_entry_flow.UnknownHandler from err
homeassistant.data_entry_flow.UnknownHandler

Any idea how to debug this?

Thank you.

Given the error ModuleNotFoundError it looks like there may be an installation issue. Seems you are using a Core install and not Container or Operating System? Does the file config_flow.py even exist in zwave_js component directory?

Yes, it is a manual installation. As there was a doubt about it, I redid the installation and copied the configuration.

Now, the above error is no longer present: there is a much more informative error message about my ZWave JS Server which apparently is too old for this HA release, so I will upgrade that and come again if I have any issue.

Thank you for your time.

1 Like

Works with upgraded ZWave JS Server.