Giter Site home page Giter Site logo

Comments (5)

skoef avatar skoef commented on June 28, 2024

Strange, I'm running similar versions and I can't reproduce these issues. Which logfile are you seeing these messages in?

Home Assistant 2023.6.0
Supervisor 2023.06.1
Operating System 10.2
Frontend 20230607.0 - latest

from ha-zonnepanelendelen.

achilleus68 avatar achilleus68 commented on June 28, 2024

Settings > System > Log (Instellingen > Systeem > Logboek)
This is the latest entry

Logger: homeassistant.config_entries
Source: custom_components/zonnepanelendelen/__init__.py:29
Integration: Zonnepanelendelen ([documentation](https://github.com/skoef/ha-zonnepanelendelen), [issues](https://github.com/skoef/ha-zonnepanelendelen/issues))
First occurred: 19:06:22 (5 occurrences)
Last logged: 20:01:48
Error setting up entry zonnepanelendelen for zonnepanelendelen

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/zonnepanelendelen/__init__.py", line 29, in async_setup_entry
    hass.config_entries.async_setup_platforms(entry, PLATFORMS)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

from ha-zonnepanelendelen.

achilleus68 avatar achilleus68 commented on June 28, 2024

Reinstalling the integration did not solve the issue. I can add un/pw and then it says connected, but still no data and the same error in the log

Deze fout is ontstaan door een aangepaste integratie.

Logger: homeassistant.config_entries
Source: custom_components/zonnepanelendelen/__init__.py:29
Integration: Zonnepanelendelen (documentation, issues)
First occurred: 19:06:22 (6 occurrences)
Last logged: 20:10:02

Error setting up entry zonnepanelendelen for zonnepanelendelen
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/zonnepanelendelen/__init__.py", line 29, in async_setup_entry
    hass.config_entries.async_setup_platforms(entry, PLATFORMS)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

from ha-zonnepanelendelen.

achilleus68 avatar achilleus68 commented on June 28, 2024

Maybe this is related?

https://developers.home-assistant.io/blog/2022/07/08/config_entry_forwards/

Before 2022.8, it was impossible to await config entry platforms forwards without a deadlock if one of the platforms loaded by the config entry was not already loaded.

Integrations need to be refactored to replace calls to hass.config_entries.async_setup_platforms with hass.config_entries.async_forward_entry_setups and/or await all hass.config_entries.async_forward_entry_setup to ensure that Home Assistant does not inadvertently reload the integration while entities and platforms are still being set up.

from ha-zonnepanelendelen.

achilleus68 avatar achilleus68 commented on June 28, 2024

Ok, that definitely was the issue. Somehow my version had hass.config_entries.async_setup_platforms instead of hass.config_entries.async_forward_entry_setups in ./custom_components/zonnepanelendelen/__init__.py

Changing that line made the integration work again.

Very strange since I only installed the integration last december.

from ha-zonnepanelendelen.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.