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 4 years ago
  • Reactions: 10
  • Comments: 25

Commits related to this issue

Most upvoted comments

I altered these lines in the stable version on my HA instance and it seems to work as expected:

image

I altered these lines in the stable version on my HA instance and it seems to work as expected: That worked for me as well…

Also: FYI - The integration is still working with DP firmware 1.0.1.49 (WiFi = 0.1.0)

This fix works for my Delta Pro. Would love to see the PR accepted into the stable branch since it breaks “normal” users experience.

@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.

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)

Thanks, this also worked for me on the stable version. River Pro

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.