ha-asusrouter: Failed to set up
The problem
I have had the integration working fine for a year or so. In the last month or two it has stopped working with the error “failed to set up”. I have tried re-loading, deleting and re-installing etc. I have also tried both “SSL” and normal connection. The web interface of the router can be accessed with a browser using the login credentials I’m inputting when setting up.
Any help getting it working again would be appreciated.
Your device model
4G-AC55U
Firmware type
Stock
Firmware version
3.0.0.4.380_8102-gc321be4
Integration version with the issue
0.23.7
Method of the integration installation
HACS
What version and type of Home Assistant installation do you use
Core 2023.11.1
Is there anything useful in the logs?
Logger: homeassistant.config_entries
Source: config_entries.py:402
First occurred: 20:22:46 (2 occurrences)
Last logged: 20:33:25
Error setting up entry 192.168.1.1 for asusrouter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/asusrouter/__init__.py", line 26, in async_setup_entry
await router.setup()
File "/config/custom_components/asusrouter/router.py", line 345, in setup
await self.update_clients()
File "/config/custom_components/asusrouter/router.py", line 389, in update_clients
api_clients = await self.bridge.async_get_clients()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/asusrouter/bridge.py", line 278, in async_get_clients
return await self._get_data(AsusData.CLIENTS, force=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/asusrouter/bridge.py", line 261, in _get_data
raw = await self.api.async_get_data(datatype, force=force)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 453, in async_get_data
data = await self.async_api_load(endpoint, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 278, in async_api_load
result = read(endpoint, content)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/endpoint/__init__.py", line 78, in read
return submodule.read(content)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/endpoint/update_clients.py", line 37, in read
return read_legacy(match.group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/endpoint/update_clients.py", line 62, in read_legacy
read_legacy_staticlist(clients, data.get("staticList"))
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/endpoint/update_clients.py", line 193, in read_legacy_staticlist
"name": client[2],
~~~~~~^^^
IndexError: list index out of range
Diagnostics information
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 17 (8 by maintainers)
hi, after rolling back then updating again, the issue is no longer present on my install so i can no longer provide further feedback on the issue since it now works. guess something went wrong when updating the first time.