Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collections that rely on integration websocket API should wait with refreshes after reconnect #272

Open
balloob opened this issue May 2, 2022 · 0 comments

Comments

@balloob
Copy link
Member

balloob commented May 2, 2022

The websocket API is one of the first integrations to load in Home Assistant. This means that during a restart, the frontend is able to reconnect. Reconning triggers a refresh of all subscribed collections.

For things like the energy collection, this is causing warnings in the logs because the energy websocket APIs are not online yet.

Collections need to be able to specify an integration that needs to be loaded before refreshing. We should also raise when subscribing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant