hassio-ecoflow: Integration broken in Home Assistant 2023.5.0
I got the following error in the latest Home Assistant Release:
Error setting up entry for ecoflow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/ecoflow/__init__.py", line 429, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, _PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'
It seems like it can be fixed by changing the line from
hass.config_entries.async_setup_platforms(entry, _PLATFORMS)
to
await hass.config_entries.async_forward_entry_setups(entry, _PLATFORMS)
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 8
- Comments: 25
I altered these lines in the stable version on my HA instance and it seems to work as expected:
Also: FYI - The integration is still working with DP firmware 1.0.1.49 (WiFi = 0.1.0)
@Patrick762 @lwsrbrts thanks for your great work and assistance. It’s running fine now.
i decieded to start with a completely fresh install of HA and then started again. Once i changed the error line of code above it started working.
This fix works for my Delta Pro. Would love to see the PR accepted into the stable branch since it breaks “normal” users experience.
I think the main branch should be updated first then. The alpha version seems to have some other bugs, if I have some spare time I’ll try to find out what’s happening.
Same issue on my Home Assistant Yellow with the DELTA Pro.