mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-11-05 09:08:15 +00:00
Update config.schema.json
Made the 'picker' field within 'tap_action' mandatory for a 'numeric' menu items.
This commit is contained in:
@@ -290,7 +290,8 @@
|
||||
"required": [
|
||||
"name",
|
||||
"type",
|
||||
"entity"
|
||||
"entity",
|
||||
"tap_action"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
@@ -778,7 +779,7 @@
|
||||
"tap_action": {
|
||||
"type": "object",
|
||||
"title": "Action",
|
||||
"description": "'confirm' field is optional.",
|
||||
"description": "'picker' field is required for 'numeric' menu type. 'confirm' and 'pin' fields are optional.",
|
||||
"properties": {
|
||||
"picker": {
|
||||
"$ref": "#/$defs/picker"
|
||||
@@ -789,6 +790,18 @@
|
||||
"pin": {
|
||||
"$ref": "#/$defs/pin"
|
||||
}
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"const": "numeric"
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"required": [
|
||||
"picker"
|
||||
]
|
||||
}
|
||||
},
|
||||
"picker": {
|
||||
|
||||
Reference in New Issue
Block a user