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

New Playlist Entity value not saved permanently #338

Open
wtaferner opened this issue May 4, 2024 · 3 comments
Open

New Playlist Entity value not saved permanently #338

wtaferner opened this issue May 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@wtaferner
Copy link

wtaferner commented May 4, 2024

Describe the bug/feature
It seems that the new SELECT entity value for the playlist will not survive a restart of HA.
For some reason the other value of the SELECT entities seem to preserve the last value or a default value is stored elsewhere.

Version
20240420.02

To Reproduce
Set a value for your playlist entity and restart

@wtaferner wtaferner added the bug Something isn't working label May 4, 2024
@wtaferner
Copy link
Author

@mang1985
Any idea why the value is not preserved?

@mang1985
Copy link
Contributor

mang1985 commented May 4, 2024

After each Home Assistant restart, the ytmusicapi logs in again and reloads playlists, which are then populated into the dropdown. This causes the selected option of the entity to be cleared. I will work on a solution to have the component reselect the user's previous choice after completing playlist loading.

@wtaferner
Copy link
Author

Ahh, this makes sense, and before it was hardcoded in the yaml with a default.
Thank you for the hint and linking the dots 👍🏼

@KoljaWindeler KoljaWindeler added enhancement New feature or request and removed bug Something isn't working labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants