-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add wrap around support in counter component #23207
base: dev
Are you sure you want to change the base?
Conversation
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
@CrazyVito11 This dialog has an additional toggle "Restore the last known value when home assistant starts". Not sure why it's missing in your screenshot. The switch should be at the bottom of the content, and I would advice to rename it to something less technical like "Loop". As I understand it when a counter counts up or down to the min or max, once it reaches that limit it starts from the initial value? Here's a design: CC: @MindFreeze |
Proposed change
This change allows users to configure the new wrap around option in the
counter
component.The idea here is that it allows you to make it easier to wrap through lists, like for example a button that lists through scenes.
Warning
The required core changes haven't been released yet at the time of writing this.
See the related Core PR at Additional information
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: