Amber Electric - Failed to set up

This has been bugging me for many days now. I have never succesfully initiated the Amber Electric Integration. I successfully add the API which then presents the NMI’s to select from. I get a success message pop up but the ‘Failed to set up’ message contnues to appear in the Integration tile.

This is the Error log I get…

Logger: homeassistant.config_entries
Source: custom_components/amberelectric/init.py:22
Integration: amberelectric
First occurred: June 6, 2023 at 11:53:49 PM (2 occurrences)
Last logged: June 6, 2023 at 11:56:18 PM

Error setting up entry D for amberelectric
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/amberelectric/init.py”, line 22, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
AttributeError: ‘ConfigEntries’ object has no attribute ‘async_setup_platforms’

Thank you so much for your assistance in advance…

Just in case someone else does the same cool trick that I did… I have found the error in my ways.

I had installed Amber Electric through HACS, not realising it was now promoted to Core… Needless to say HA was using the HACS code including the above error.

After removing it from HACS and restarting HA
Core Amber Electric is faultless and delivers the experience I was expecting.

1 Like

this resolved my issue, thank you.