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

Increase homeassistant lovelace connect timeout and make it configurable #770

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

cicchr
Copy link
Contributor

@cicchr cicchr commented Dec 1, 2023

I was having an issue where homeassistant dashboards would not always load correctly when casting. I also discovered I wasn't the only one experiencing this: home-assistant/core#82823. I tracked down the source of the warning message and did some testing and confirmed the exceptions were always thrown after 10 seconds exactly. Increasing the timeout allows the dashboard to show correctly and the error messages are gone.

10 seconds seems somewhat arbitrary here and some cast devices can be slow to load. Also since a bunch of people are having this issue I think it makes sense to increase the default timeout.

Another option would be to make this configurable in the cast integration to allow users experiencing this issue to set a larger timeout.

@smarthomefamilyverrips
Copy link

@emontnemery can you look at this please.

Copy link
Collaborator

@emontnemery emontnemery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @cicchr 👍

@emontnemery emontnemery reopened this Jan 11, 2024
@emontnemery emontnemery merged commit 65c2d67 into home-assistant-libs:master Jan 11, 2024
1 check passed
@andrelung
Copy link

Just to clarify: you extended the timeout, but it is still not configurable from home assistant, right?

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

Successfully merging this pull request may close these issues.

4 participants