Use minimum and maximum instead of const

This commit is contained in:
Joseph Abbey
2025-11-04 19:00:22 +00:00
parent f0e263ae54
commit b688cec8f6

View File

@@ -346,10 +346,12 @@
"const": "brightness" "const": "brightness"
}, },
"min": { "min": {
"const": 0 "type": "integer",
"minimum": 0
}, },
"max": { "max": {
"const": 255, "type": "integer",
"max": 255,
"description": "Lights are not a percentage." "description": "Lights are not a percentage."
} }
} }
@@ -444,10 +446,12 @@
"const": "percentage" "const": "percentage"
}, },
"min": { "min": {
"const": 0 "type": "integer",
"minimum": 0
}, },
"max": { "max": {
"const": 100 "type": "integer",
"maximum": 100
} }
} }
} }
@@ -479,10 +483,12 @@
"const": "position" "const": "position"
}, },
"min": { "min": {
"const": 0 "type": "integer",
"minimum": 0
}, },
"max": { "max": {
"const": 100 "type": "integer",
"maximum": 100
} }
} }
} }
@@ -542,10 +548,12 @@
"const": "tilt_position" "const": "tilt_position"
}, },
"min": { "min": {
"const": 0 "type": "integer",
"minimum": 0
}, },
"max": { "max": {
"const": 100 "type": "integer",
"maximum": 100
} }
} }
} }
@@ -569,10 +577,12 @@
"const": "position" "const": "position"
}, },
"min": { "min": {
"const": 0 "type": "integer",
"minimum": 0
}, },
"max": { "max": {
"const": 100 "type": "integer",
"maximum": 100
} }
} }
} }
@@ -607,10 +617,13 @@
"const": "volume_level" "const": "volume_level"
}, },
"min": { "min": {
"const": 0 "type": "integer",
"minimum": 0
}, },
"max": { "max": {
"const": 1 "type": "integer",
"maximum": 1,
"description": "Fraction [0,1], not percentage."
} }
} }
} }