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": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"type",
|
"type",
|
||||||
"entity"
|
"entity",
|
||||||
|
"tap_action"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
@@ -778,7 +779,7 @@
|
|||||||
"tap_action": {
|
"tap_action": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Action",
|
"title": "Action",
|
||||||
"description": "'confirm' field is optional.",
|
"description": "'picker' field is required for 'numeric' menu type. 'confirm' and 'pin' fields are optional.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"picker": {
|
"picker": {
|
||||||
"$ref": "#/$defs/picker"
|
"$ref": "#/$defs/picker"
|
||||||
@@ -789,6 +790,18 @@
|
|||||||
"pin": {
|
"pin": {
|
||||||
"$ref": "#/$defs/pin"
|
"$ref": "#/$defs/pin"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"if": {
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"const": "numeric"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"then": {
|
||||||
|
"required": [
|
||||||
|
"picker"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"picker": {
|
"picker": {
|
||||||
|
|||||||
Reference in New Issue
Block a user