Skip to content

Conversation

@droid-sheep
Copy link

@droid-sheep droid-sheep commented Apr 9, 2025

Description: This pull request updates the Set Volume to Specific Value action to improve flexibility and input validation. The input type has been changed from number to textinput, allowing the use of variables. Additionally, validation logic has been added to ensure the input is a valid number within the range of 0 to 100.

Changes:

  • Changed the input type for the value option from number to textinput.

  • Enabled the use of variables in the input (useVariables: true).

  • Validation: Ensure the input is a valid numeric value using a regular expression /^\d+$/.

  • Validation: Check that the numeric value is within the range of 0 to 100.

  • Added warning logs for invalid or out-of-range inputs.

Benefits:
Increased flexibility by allowing variable-based inputs.
Prevents potential issues caused by invalid or out-of-range inputs.

@droid-sheep
Copy link
Author

Are there any updates in this repo? @Julusian

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.

1 participant