Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Allow options to be outside of min/max in validator #1282

Merged

Conversation

cdjackson
Copy link
Contributor

Min/max validation should allows values outside of min/max if they are in the defined options. As an example, in Zwave we have lots of parameters that have a range of (say) 0 to 100, but have an option of setting 255 to disable. With the current implementation, I would need to set min/max to 0/255, which allows any value. It seems better to me to allow values to be outside of the range to cover this case.

This was discussed a long time ago when I added the 'limit to options' configuration in the parameter for exactly this purpose.

Signed-off-by: Chris Jackson chris@cd-jackson.com

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
@maggu2810 maggu2810 merged commit cba8640 into eclipse-archived:master Apr 2, 2016
@kaikreuzer kaikreuzer modified the milestone: 0.8.0.b5 May 22, 2016
@openhab-bot
Copy link
Contributor

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/eurotronic-spirit-z-wave-plus-doesnt-work/37477/6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants