Amber Electric Usage custom component

Hi there, I have what I believe to be is a slightly different error?

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 8:00:58 PM (5 occurrences)
Last logged: 8:10:11 PM

Error setting up entry home for amberelectric
Error setting up entry h for amberelectric
Error setting up entry 1 for amberelectric
Error setting up entry for amberelectric
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 594, 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’. Did you mean: ‘async_unload_platforms’?

Oh what’s your HA version, this could be a regression, I’ll look into this after work.

Edit: weird, I’m not using async_setup_platforms, and it’s already async_unload_platforms

Here are versions.

Home Assistant

  • Core2024.6.4
  • Supervisor2024.06.0
  • Operating System
  • Frontend20240610.1

Just realized from your error message, you might be looking at the wrong one.

File “/config/custom_components/amberelectric/init .py”, line 22, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)

I think what you have there is probably this GitHub - madpilot/hass-amber-electric: Home Assistant Component to pull the latest energy prices from Amber Electric, which is a different integration, and has long been deprecated. This is the official Amber one already available in Home Assistant Core (but it doesn’t support usages).

Make sure you have GitHub - Tmbao/amberelectric-usages in your HACS custom repositories

Thank you! Makes sense. Working now

Try to install this custom repositories. And stuck. Any idea?


image
Tried both. Hit Add button and got nothing.
My ha version is 2024.8.1 frontend 20240809.0

worked out I need put URL in repository to get custom repository. However, it still failed when trying to download