SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

Sonofflan does not load after restart

Open Anildct opened this issue 6 months ago • 2 comments

Hello,

When I restart my homeassistant, sonofflan integration does not load by itself. I have to go to integrations and and make a reload everytime.

After I make reload the integration works fine without any issue.

I searched but I could not find anything about such a problem.

Thanks

Anildct avatar Jun 12 '25 08:06 Anildct

The only thing about sonoff in log is

2025-06-13 15:45:40.958 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry d*****@i******** for sonoff
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/sonoff/__init__.py", line 170, in async_setup_entry
    await system_health.setup_debug(hass, _LOGGER)
  File "/config/custom_components/sonoff/system_health.py", line 61, in setup_debug
    info = await hass.helpers.system_info.async_get_system_info()
                 ^^^^^^^^^^^^

Anildct avatar Jun 13 '25 13:06 Anildct

I'm experiencing the same, rolled back to previous stable docker image I had historically (ghcr.io/home-assistant/home-assistant@sha256:d619229bc164e4d138463178c550f33d325f0529184f8264962b463a2ebbbc1a) and it's working again, definitely an issue with latest (updated a few days ago) stable being incompatible with sonoff integrations.

clivecrous avatar Jun 15 '25 16:06 clivecrous

@Anildct you using outdated version. This was already fixed in sep 2024.

AlexxIT avatar Aug 14 '25 11:08 AlexxIT