jrfernandes / ontario_energy_board

Home Assistant component that installs a sensor with the current energy rate for Ontario energy companies
MIT License
41 stars 10 forks source link

"Error setting up entry..." after latest update. #26

Closed THX2112 closed 1 year ago

THX2112 commented 1 year ago

During the latest setup OEB failed to load or reconfigure itself.

Any ideas on how to fix this? I was going to remove it then re-install but it looks like it's going to clobber my setup.

These were the only error messages:

2023-05-09 08:23:50.860 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ontario_energy_board which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-09 08:24:04.011 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry GrandBridge Energy Inc.-Energy+ Rate Zone (RESIDENTIAL) for ontario_energy_board
File "/config/custom_components/ontario_energy_board/__init__.py", line 21, in async_setup_entry
pslavickas commented 1 year ago

+1 on this - similar problem after the latest update

 Logger: homeassistant.config_entries
 Source: custom_components/ontario_energy_board/__init__.py:21
 Integration: Ontario Energy Board ([documentation](https://github.com/jrfernandes/ontario_energy_board), [issues](https://github.com/jrfernandes/ontario_energy_board/issues))
 First occurred: 10:31:55 PM (3 occurrences)
 Last logged: 10:43:52 PM

 Error setting up entry Elexicon Energy Inc.-Whitby Rate Zone (RESIDENTIAL) for ontario_energy_board
 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/ontario_energy_board/__init__.py", line 21, in async_setup_entry
     hass.config_entries.async_setup_platforms(entry, PLATFORMS)
 AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

Edit: Updating to the latest version of the HACS integration ontario_energy_board (v0.3.3) & restarting Home Assistant resolved the issue.

jrfernandes commented 1 year ago

The latest release fixes this issue. Please update the component via HACS.