Update config.schema.json

This commit is contained in:
Joseph Abbey
2024-01-25 19:34:51 +00:00
committed by GitHub
parent 83f8b7bf26
commit 3e0789e808

View File

@ -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."