I upgraded HA from 2025.11.3 to 12.2 and looks like my asuswrt integration broke completely, showing as “failed to set up” in the Devices / Integrations page, and logging the following error on startup:
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/asuswrt/__init__.py", line 18, in async_setup_entry
await router.setup()
File "/usr/src/homeassistant/homeassistant/components/asuswrt/router.py", line 231, in setup
await self._api.async_connect()
File "/usr/src/homeassistant/homeassistant/components/asuswrt/bridge.py", line 389, in async_connect
await self._api.async_connect()
File "/usr/local/lib/python3.13/site-packages/asusrouter/asusrouter.py", line 203, in async_connect
return await self.async_get_identity() is not None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/asusrouter/asusrouter.py", line 293, in async_get_identity
self._identity = await collect_identity(
^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/asusrouter/modules/identity.py", line 126, in collect_identity
endpoints, onboarding = await _check_endpoints(api_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/asusrouter/modules/identity.py", line 230, in _check_endpoints
onboarding = process_onboarding(
~~~~~~~~~~~~~~~~~~^
read_onboarding(contents[Endpoint.ONBOARDING])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
).get(AsusData.AIMESH, {})
^
File "/usr/local/lib/python3.13/site-packages/asusrouter/modules/endpoint/onboarding.py", line 47, in process
for node in [process_aimesh_node(device)]
~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/asusrouter/modules/endpoint/onboarding.py", line 98, in process_aimesh_node
level = safe_int(data.get("level", "0"))
^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
This is with an ASUS AiMesh setup running 3.0.0.6. No recent changes or reboots to the ASUS setup.
When I try to reload the HA asuswrt integration, I do see the following in my router’s logs:
Dec 8 19:13:24 HTTPD: [LOGIN][http][APP] success (<<HA's internal IP ADDRESS>>)
I did notice that 2025.12.2 did come with this change:
Bump asusrouter to 1.21.1 (@Vaskivskyi - #158192)
@Vaskivskyi any ideas on how to troubleshoot this one?
Thanks!