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)

Most upvoted comments

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:

Those on 2024.1.6, please get ready to live with it as I have raised it against 2024.2.0 and it was closed. With 2024.2.0 the issue will be at least permanent error for LB2120 not sure for others. Hoping others will start reporting too.

Sorry, not sure I’m understand your wording there. If I have LB2120 and upgrade to 2024.2 is it fixed? Or permanently erroring?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/108524#issuecomment-1935899128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVKPZHS5DIYJ45Q6IAVIXHLYSYNSPAVCNFSM6AAAAABCDK6J36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVHA4TSMJSHA . You are receiving this because you commented.Message ID: @.***>

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:

I’m not seeing any issues with HA Core 2024.3.3. I restarted HA Core only and then the rpi running hassio and all good for me mate!

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/108524#issuecomment-2017593447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVKPZHXRBUD3HDKXWZUUOZDYZ7WSXAVCNFSM6AAAAABCDK6J36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJXGU4TGNBUG4 . You are receiving this because you commented.Message ID: @.***>

On 2024.2.1 with LM1200, same issue.