You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding in a new device on the network, and attempting to control whether it is able to connect to the network or not I get a Error message that says "session is closed"
The error log says:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: April 5, 2025 at 3:49:20 PM (20 occurrences)
Last logged: 9:41:20 AM
[281471533424288] Unexpected exception
[281472445704960] Unexpected exception
[281471535046160] Unexpected exception
[281471561965216] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/omada/switch.py", line 300, in async_turn_off
await self.entity_description.control_fn(self.controller.api, self._mac, False)
File "/config/custom_components/omada/switch.py", line 55, in block_client_fn
await api.known_clients.async_set_block(mac, not enabled)
File "/config/custom_components/omada/api/known_clients.py", line 11, in async_set_block
await self._request("POST", "/cmd/clients/{}/{}".format(mac, block and "block" or "unblock"))
File "/config/custom_components/omada/api/controller.py", line 166, in _site_request
return await self._controller_request(method, endpoint, params=params, json=json, private=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/omada/api/controller.py", line 184, in _controller_request
return await self._request(
^^^^^^^^^^^^^^^^^^^^
method, url, params=params, json=json, private=private
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/omada/api/controller.py", line 210, in _request
async with self._session.request(
~~~~~~~~~~~~~~~~~~~~~^
method,
^^^^^^^
...<4 lines>...
ssl=self._ssl_context,
^^^^^^^^^^^^^^^^^^^^^^
) as res:
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1425, in aenter
self._resp: _RetType = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 512, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed
This has happened a couple times with different clients on the network now, not sure why this is happening.... Any ideas would be appreciated!!
SH
The text was updated successfully, but these errors were encountered:
After adding in a new device on the network, and attempting to control whether it is able to connect to the network or not I get a Error message that says "session is closed"
The error log says:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: April 5, 2025 at 3:49:20 PM (20 occurrences)
Last logged: 9:41:20 AM
[281471533424288] Unexpected exception
[281472445704960] Unexpected exception
[281471535046160] Unexpected exception
[281471561965216] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/omada/switch.py", line 300, in async_turn_off
await self.entity_description.control_fn(self.controller.api, self._mac, False)
File "/config/custom_components/omada/switch.py", line 55, in block_client_fn
await api.known_clients.async_set_block(mac, not enabled)
File "/config/custom_components/omada/api/known_clients.py", line 11, in async_set_block
await self._request("POST", "/cmd/clients/{}/{}".format(mac, block and "block" or "unblock"))
File "/config/custom_components/omada/api/controller.py", line 166, in _site_request
return await self._controller_request(method, endpoint, params=params, json=json, private=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/omada/api/controller.py", line 184, in _controller_request
return await self._request(
^^^^^^^^^^^^^^^^^^^^
method, url, params=params, json=json, private=private
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/omada/api/controller.py", line 210, in _request
async with self._session.request(
~~~~~~~~~~~~~~~~~~~~~^
method,
^^^^^^^
...<4 lines>...
ssl=self._ssl_context,
^^^^^^^^^^^^^^^^^^^^^^
) as res:
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1425, in aenter
self._resp: _RetType = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 512, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed
This has happened a couple times with different clients on the network now, not sure why this is happening.... Any ideas would be appreciated!!
SH
The text was updated successfully, but these errors were encountered: