core: Error setting up entry Netgear LM1200 for netgear_lte
The problem
Netgear LTE Modem Add-On has stopped working. Attempted to remove the device and add it again, but same error occurs.
Logger: homeassistant.config_entries Source: config_entries.py:406 First occurred: 12:38:48 AM (6 occurrences) Last logged: 11:40:57 AM
Error setting up entry Netgear LM1200 for netgear_lte Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 406, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/netgear_lte/init.py”, line 223, in async_setup_entry await _login(hass, modem_data, password) File “/usr/src/homeassistant/homeassistant/components/netgear_lte/init.py”, line 269, in _login await modem_data.modem.login(password=password) File “/usr/local/lib/python3.11/site-packages/eternalegypt/eternalegypt.py”, line 114, in login await self._login(password) File “/usr/local/lib/python3.11/site-packages/eternalegypt/eternalegypt.py”, line 128, in _login async with self.websession.get(url) as response: File “/usr/local/lib/python3.11/site-packages/aiohttp/client.py”, line 1187, in aenter self._resp = await self._coro ^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/aiohttp/client.py”, line 421, in _request raise RuntimeError(“Session is closed”) RuntimeError: Session is closed
What version of Home Assistant Core has the issue?
core-2024.1.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Netgear LTE
Link to integration documentation on our website
https://www.home-assistant.io/integrations/netgear_lte
Diagnostics information
home-assistant_netgear_lte_2024-01-20T17-48-43.511Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2024-01-20 11:38:53.162 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Netgear LM1200 for netgear_lte
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/netgear_lte/__init__.py", line 223, in async_setup_entry
await _login(hass, modem_data, password)
File "/usr/src/homeassistant/homeassistant/components/netgear_lte/__init__.py", line 269, in _login
await modem_data.modem.login(password=password)
File "/usr/local/lib/python3.11/site-packages/eternalegypt/eternalegypt.py", line 114, in login
await self._login(password)
File "/usr/local/lib/python3.11/site-packages/eternalegypt/eternalegypt.py", line 128, in _login
async with self.websession.get(url) as response:
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 421, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed
Additional information
No response
About this issue
- Original URL
- State: open
- Created 5 months ago
- Comments: 30 (2 by maintainers)
Since some have reported occasional issue, the developer of this code believes it’s an ad-hoc issue and my issue was closed. But I have confirmed it’s fully broken in 2024.2.0, without fixing the code L2120 is useless to me.
On Sat, 10 Feb 2024, 12:07 am mdo77, @.***> wrote:
For everyone here, either wait for the mitigation to be in the next patch release or manually make the change IF you know what you are doing. Have a look at the the above pull request for what to do after a restart.
Not sure, rebooted RPI and modem yesterday didn’t work but after your message rebooted RPI…bingo …all good, thanks
On Mon, 25 Mar 2024, 8:43 pm Chris McCallum, @.***> wrote:
On 2024.2.1 with LM1200, same issue.