hassio-ecoflow
hassio-ecoflow copied to clipboard
Fix setup entry method for HA 2023.5.0
Possible fix for #76
@vwt12eh8, can you please merge?
Any update on this?
Confirmed that this PR fixes the issue for me. :shipit:
Delta Pro was successfully added when applied this PR.
Any ETA on merging this?
HA: 2023.11.2
I am apply this PR and successfully connected DeltaPro! Hooray!
Please merge!
Error from log without this changes.
Logger: homeassistant.config_entries
Source: config_entries.py:402
First occurred: 1:05:26 AM (1 occurrences)
Last logged: 1:05:26 AM
Error setting up entry DELTA Pro 030141 for ecoflow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecoflow/__init__.py", line 275, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, _PLATFORMS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'
@vwt12eh8, can you please merge?
Requesting merge