-
-
Notifications
You must be signed in to change notification settings - Fork 7
Remove input initial #7
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
base: main
Are you sure you want to change the base?
Conversation
This way the selected values can be restored after HA restart.
I tried this out and it doesn't seem to be working for me. When I restart the setting still flips back to lovelace. @patrickli can you confirm that if you log in with a private browsing session that you get redirected? I forked the repo and merged this in for testing, in case anyone else wants to try: https://github.com/deviantintegral/default-dashboard Also, the actions in this repo use the latest nodejs release, and it looks like builds are broken on node 18. |
I actually can't reproduce this right now. Despite restarted HA a few times the redirection to set the default dashboard on the first login always works. It's annoying that you have to login a couple of times if "remember me" is not selected but that's a different issue. |
I figured out the issue. I didn't really understand this PR. If you start with the released version, create the input select, and then switch to this PR, the I have a few tags now as I was debugging this. The best one for others to test is https://github.com/deviantintegral/default-dashboard/releases/tag/1.1.2-fix-builds. |
Yes that's right. I probably have manually edited the But if you are on the release version this bug should be there. |
I have two HA installs, and was having real difficulty with the second one. I noticed in the one that was working that |
I just noticed this activity. I will look at this soon and get a new versions out there. Thanks for all the work! |
So I think the appropriate way to handle this is to modify the function that creates the input select and boolean toggle automatically for the user. Perhaps it is not effectively checking if these already exist, and thus resetting the existing input select instead of skipping the creation step. https://github.com/daredoes/default-dashboard/blob/main/src/default-dashboard.ts#L75 |
I didn't look too much into the creation process. But regardless, we need to remove the |
I see what you're saying. I'll test it out soon and give it a new release |
- Update all npm dependencies to latest compatible versions - Fix duplicate entity creation issue (daredoes#10) - Apply PR daredoes#7 fix for dropdown helper state persistence - Fix default dashboard reset after restart (daredoes#8) - Add retry logic for entity loading after HA restart - Update to ES modules and modern build tooling - Update maintenance shield to 2025 - Bump version to 1.1.0 Fixes daredoes#10, daredoes#8, daredoes#6 Implements daredoes#7 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Fixes #6