chore: update schema (#17930)

This commit is contained in:
andig 2025-01-05 13:36:10 +01:00 • committed by GitHub
parent 5b21646c49
commit e4f8d24b4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 14 deletions

View file

@ -199,7 +199,6 @@
"enum": [
"string",
"bool",
"number",
"float",
"int",
"list",
@ -207,12 +206,6 @@
"duration"
]
},
"validvalues": {
"type": "array",
"items": {
"type": "string"
}
},
"choice": {
"type": "array",
"items": {

View file

@ -50,6 +50,7 @@
},
"required": [
"generic",
"heating",
"sockets",
"switchsockets",
"scooter"

View file

@ -65,7 +65,9 @@
"type": "string"
}
},
"required": ["name"],
"required": [
"name"
],
"title": "Template"
},
"Product": {
@ -80,14 +82,28 @@
}
},
"anyOf": [
{"required": ["brand"]},
{"required": ["description"]}
{
"required": [
"brand"
]
},
{
"required": [
"description"
]
}
],
"title": "Product"
},
"Groups": {
"type": "string",
"enum": ["generic", "switchsockets", "scooter", "sockets"]
"enum": [
"generic",
"heating",
"switchsockets",
"scooter",
"sockets"
]
},
"Linked": {
"type": "object",
@ -99,7 +115,11 @@
},
"usage": {
"type": "string",
"enum": ["grid", "pv", "battery"]
"enum": [
"grid",
"pv",
"battery"
]
},
"multiple": {
"type": "boolean"
@ -109,11 +129,21 @@
"minLength": 1
}
},
"required": ["template", "usage"]
"required": [
"template",
"usage"
]
},
"Capability": {
"type": "string",
"enum": ["1p3p", "iso151182", "rfid", "smahems", "mA"]
"enum": [
"1p3p",
"battery-control",
"iso151182",
"rfid",
"smahems",
"mA"
]
}
}
}