Git Product home page Git Product logo

Comments (8)

thomluther avatar thomluther commented on June 4, 2024 1

Hello
This seems indeed to be related to constant_modifier which loads very early during startup. Its not really an integration, but a custom component that I use to modify some hard coded ZHA device timeouts for Aqara sensors since I did not get that to work with ZHA quirks.

I disabled the component and had no further errors on 2 restarts. Since that component is not maintained anymore, I'll have to see what to do with it and need to start research again how to reduce the ZHA device sensor timeouts otherwise...

Thanks for you assistance, I think this HACS issue can then be closed.

from integration.

hacs-bot avatar hacs-bot commented on June 4, 2024

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a 👍 reaction to the issue description. Thanks! 👍

from integration.

ludeeus avatar ludeeus commented on June 4, 2024

Post a diagnostics bump file for any integration

from integration.

thomluther avatar thomluther commented on June 4, 2024

Here is the HACS diagnostic dump file
config_entry-hacs-efd0e4f2507410ebd7f65292d2d6b0ba.json

from integration.

thomluther avatar thomluther commented on June 4, 2024

I really think it is a timing problem during restart. Today there was no problem during one restart, but again on another restart. The HACS reload once all is started never failed.
I assume the hass object has not created the hass.data['integrations'] entry yet when HACS is querying it?
File "/usr/src/homeassistant/homeassistant/loader.py", line 1307, in async_get_loaded_integration
cache = hass.data[DATA_INTEGRATIONS]
~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'integrations'
So maybe a delay must be introduced, or proper error handling when hass.data.get(DATA_INTEGRATIONS) is None

from integration.

ludeeus avatar ludeeus commented on June 4, 2024

It is not HACS that is requesting it, that is core.
And hass.data['integrations'] is initialized before any integration is loaded.
The current suspicion is that you have some custom integration that is messing with that.
https://github.com/emontnemery/home-assistant/blob/04072cb3c1a2447200b322043a89c89e7e39d8ac/homeassistant/bootstrap.py#L262
https://github.com/emontnemery/home-assistant/blob/04072cb3c1a2447200b322043a89c89e7e39d8ac/homeassistant/loader.py#L241

from integration.

ludeeus avatar ludeeus commented on June 4, 2024

Can you try to remove constant_modifier and then restart to see if that helps?

from integration.

ludeeus avatar ludeeus commented on June 4, 2024

If it still is not working without that, can you post your logs from startup with debug enabled for custom_components.hacs?

from integration.

Related Issues (20)

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.