SonoffLAN: Home Assistant 2022.4.0b0 - Unable to prepare setup for platform sonoff.fan: Platform not found
Since Home Assistant 2022.4.0b0, the Sonoff integration is failing to load. The error message is the following:
Logger: homeassistant.setup
Source: setup.py:298
First occurred: 18:58:36 (3 occurrences)
Last logged: 18:58:41
Unable to prepare setup for platform sonoff.fan: Platform not found (cannot import name 'SPEED_LOW' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/__init__.py)).
It was working fine with the latest non-beta version of Home Assistant (2022.3.8). I run a supervised install. The functional impact is that my fans are not working at the moment.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 40 (3 by maintainers)
Now for me it worked
All 3 iFan03 working fine.
Hi - Not sure why im getting this issue. Is there anything to add in sonoff_main.py?
Logger: homeassistant.setup Source: setup.py:298 First occurred: 11:59:44 AM (3 occurrences) Last logged: 11:59:44 AM
Unable to prepare setup for platform sonoff.fan: Platform not found (cannot import name ‘EWeLinkEntity’ from ‘custom_components.sonoff.sonoff_main’ (/config/custom_components/sonoff/sonoff_main.py)).
Thanks in advance!
This is not very properly. This is just fast solution. Your solution also great. My solution with diffuser is bad. But it is quick. I hope I will fix all problems in 2nd version.
Try the new version in my fork… https://github.com/B-Hartley/SonoffLAN/blob/BHartley-2022.04/custom_components/sonoff/fan.py
Sure 😃
-Edited fan.py and replaced complete with above code. -restarted -I have 3 ifan03 and not working with the above error
Logger: homeassistant.setup Source: setup.py:298 First occurred: 11:59:44 AM (3 occurrences) Last logged: 11:59:44 AM
Unable to prepare setup for platform sonoff.fan: Platform not found (cannot import name ‘EWeLinkEntity’ from ‘custom_components.sonoff.sonoff_main’ (/config/custom_components/sonoff/sonoff_main.py)).
It works great here too. Thanks again!
If in doubt how to do this, it’s pretty simple:
2. Edit fan.py and replace all its content by the code above 3. restart Home Assistant