ha-asusrouter icon indicating copy to clipboard operation
ha-asusrouter copied to clipboard

[Bug] After update to HA 2024.12 -> Setup failed for custom integration 'asusrouter'

Open sylwester- opened this issue 2 months ago • 7 comments

The problem

After updating to the HA 2024.12:

Setup failed for custom integration 'asusrouter': Unable to import component: No module named 'asusrouter'

Your device model

multiple

Firmware type

Stock

Firmware version

N/A

Integration version with the issue

0.34.1

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

2024.12

Is there anything useful in the logs?

Logger: homeassistant.setup
Source: setup.py:334
First occurred: 7:52:05 PM (1 occurrences)
Last logged: 7:52:05 PM

Setup failed for custom integration 'asusrouter': Unable to import component: No module named 'asusrouter'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1034, in async_get_component
    self._component_future.result()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1014, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._get_component, True
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1074, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/asusrouter/__init__.py", line 12, in <module>
    from .const import ASUSROUTER, DOMAIN, PLATFORMS, STOP_LISTENER
  File "/config/custom_components/asusrouter/const.py", line 28, in <module>
    from asusrouter.modules.openvpn import AsusOVPNClient, AsusOVPNServer
ModuleNotFoundError: No module named 'asusrouter'

Diagnostics information

No response

Additional information

No response

sylwester- avatar Dec 10 '24 19:12 sylwester-