Hi There,
With latest HA and latest Asus integration sometimes the integration won’t start.
Have to reload the integration multiple times before it will work again.
- Asus integration: 0.23.4
- Core: 2023.11.1
- Supervisor: 2023.10.1
- Operating System: 11.1
- Frontend: 20231030.1
Below log part of the errors:
2023-11-05 17:11:28.309 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Asus Router for asusrouter
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 199, in _send_request
resp_status, resp_headers, resp_content = await self._make_post_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 276, in _make_post_request
async with self._session.post(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 32] Broken pipe
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 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 289, in setup
await self.bridge.async_connect()
File "/config/custom_components/asusrouter/bridge.py", line 150, in async_connect
await self.api.async_connect()
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 115, in async_connect
return await self.async_get_identity() is not None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 175, in async_get_identity
self._identity = await collect_identity(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/identity.py", line 93, in collect_identity
endpoints = await _check_endpoints(api_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/identity.py", line 167, in _check_endpoints
endpoints[endpoint] = await check_available(endpoint, api_hook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/endpoint/__init__.py", line 148, in check_available
status, _, _ = await api_query(endpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 242, in async_api_query
return await self._connection.async_query(endpoint, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 249, in async_query
return await self._send_request(endpoint, payload, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 226, in _send_request
raise AsusRouterConnectionError from ex
asusrouter.error.AsusRouterConnectionError: None
2023-11-05 17:13:47.952 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Asus Router for asusrouter
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 199, in _send_request
resp_status, resp_headers, resp_content = await self._make_post_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 276, in _make_post_request
async with self._session.post(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 32] Broken pipe
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 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 289, in setup
await self.bridge.async_connect()
File "/config/custom_components/asusrouter/bridge.py", line 150, in async_connect
await self.api.async_connect()
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 115, in async_connect
return await self.async_get_identity() is not None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 175, in async_get_identity
self._identity = await collect_identity(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/identity.py", line 93, in collect_identity
endpoints = await _check_endpoints(api_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/identity.py", line 167, in _check_endpoints
endpoints[endpoint] = await check_available(endpoint, api_hook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/modules/endpoint/__init__.py", line 148, in check_available
status, _, _ = await api_query(endpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/asusrouter.py", line 242, in async_api_query
return await self._connection.async_query(endpoint, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 249, in async_query
return await self._send_request(endpoint, payload, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asusrouter/connection.py", line 226, in _send_request
raise AsusRouterConnectionError from ex
asusrouter.error.AsusRouterConnectionError: None