AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.74k stars 416 forks source link

lost connection with Sonoff device and update of SonoffLAN is not possible #1078

Closed schel4ok closed 1 year ago

schel4ok commented 1 year ago

I use homeassistand in docker and recently I lost connection with my Sonoff device, though it works in eWelink app.

When I do server check I see error

Component error: sonoff - cannot import name 'ConfigEntryState' from 'homeassistant.config_entries' (/usr/src/homeassistant/homeassistant/config_entries.py)

When I go to HACS I see that SonoffLAN installed version is 2.4.6 and it advices me to update. image

image

But update seems not possible. I tried to update several times and every time after restart I see the same screen that I still running SonoffLAN 2.4.6. Even if I remove SonoffLAN after restart I see that it is installed.

I tried to update to latest HA image, but it doesn't help me. image

What is the problem?

AlexxIT commented 1 year ago

About HACS problems you should ask in HACS repo. You always can download new SonoffLAN version manually

marcpaulv commented 1 year ago

This is not about the HACS integrattion, it's about the compatibility with Home Assistant itself. I was running HA 2021 and started getting this issue, i solved it by upgrading to the latest HA 2023.