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

Ontario Energy Board Integration not loading in 2023.5.0b0 #23

Closed pgsylvestre closed 1 year ago

pgsylvestre commented 1 year ago

This error originated from a custom integration.

Logger: homeassistant.config_entries Source: custom_components/ontario_energy_board/init.py:21 Integration: Ontario Energy Board (documentation, issues) First occurred: April 26, 2023 at 9:48:25 PM (3 occurrences) Last logged: 12:01:41 AM

Error setting up entry Hydro Ottawa Limited (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'

rtorchia commented 1 year ago

getting the same error

johnwalk61 commented 1 year ago

Same error here too. Right after the update

kenlasko commented 1 year ago

There was a ticket opened about this very thing back in February, where HA warned about the deprecation of async_setup_platforms. The integration owner never acknowledged or did anything about it. Hopefully the integration isn't abandoned already. Maybe they're not getting notifications?

https://github.com/jrfernandes/ontario_energy_board/issues/21

johnwalk61 commented 1 year ago

I reverted to using a template for the tariff and a rest sensor to get rates pulling directly from OEB. Working well so far. Looks like this integration might be abandoned.

rtorchia commented 1 year ago

I manually did the fix on my system and now its working. I submitted a pull request with the fix also.

darknicht66 commented 1 year ago

@rtorchia I tested your PR on my system and it is working perfectly. Hopefully the project owner will merge soon.

kenlasko commented 1 year ago

I did the same. Very easy fix. Hope the owner sees this and accepts the PR.

johnwalk61 commented 1 year ago

Thanks. Change worked perfectly.

RoisinDubh79 commented 1 year ago

@rtorchia tested your fix on the container version of HA 2023.5.1 and it's working great.

jrfernandes commented 1 year ago

Thank you, @rtorchia, for the contribution.

There's now a new release that includes the fix.