mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-18 20:38:39 +00:00
Update config.schema.json
This commit is contained in:
@ -44,6 +44,34 @@
|
|||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"template": {
|
"template": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"entity": {
|
||||||
|
"$ref": "#/$defs/entity",
|
||||||
|
"deprecated": true,
|
||||||
|
"title": "Schema change:",
|
||||||
|
"description": "Use 'tap_action' instead to mirror Home Assistant."
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"title": "Your familiar name",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"title": "What to display (template)",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"title": "Menu item type",
|
||||||
|
"description": "One of 'tap', 'template', 'toggle' or 'group'.",
|
||||||
|
"const": "template"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["name", "content", "type"],
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"entity": {
|
"entity": {
|
||||||
@ -66,8 +94,10 @@
|
|||||||
"$ref": "#/$defs/tap_action"
|
"$ref": "#/$defs/tap_action"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["name", "content", "type"],
|
"required": ["name", "content", "type", "tap_action"],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"tap": {
|
"tap": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -110,7 +140,6 @@
|
|||||||
"entity": {
|
"entity": {
|
||||||
"$ref": "#/$defs/entity",
|
"$ref": "#/$defs/entity",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^[^.]+\\.[^.]+$",
|
|
||||||
"deprecated": true,
|
"deprecated": true,
|
||||||
"title": "Schema change:",
|
"title": "Schema change:",
|
||||||
"description": "'entity' is no longer necessary and should now be removed."
|
"description": "'entity' is no longer necessary and should now be removed."
|
||||||
|
Reference in New Issue
Block a user