Skip to content

Fix external slider updates #1400

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlexDaniel
Copy link
Contributor

While I'm not following the logic in that code path, the idea seems to be that it should do an early return if the new value was not processed yet.

And all that is fine, except that it was using last_changed instead of last_updated. For lights, it means that it only reacted to lights being turned on or off, not when the brightness was changing.

Resolves #1367.

While I'm not following the logic in that code path, the idea seems to
be that it should do an early return if the new value was not processed
yet.

And all that is fine, except that it was using `last_changed` instead of
`last_updated`. For lights, it means that it only reacted to lights
being turned on or off, not when the brightness was changing.

Resolves Clooos#1367.
@AlexDaniel
Copy link
Contributor Author

OK, while this change indeed fixes the bug mentioned in the ticket, I don't think it can be merged as is. It seems that it somewhat breaks the live update feature, as now changes done by the component are now feedback back as the outside changes, and it ends up being a bit buggy. I thought that the check for context.dragging should've totally avoided that, but it doesn't.

@AlexDaniel AlexDaniel marked this pull request as draft April 15, 2025 15:40
@HyperCriSiS
Copy link

In my visual-styling-module, I have integrated slider updates. Maybe there is something in the code that helps?

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.

Slider does not update for brightness if adjusted outside of the card after being adjusted in the card
2 participants