Valetudo/backend/lib/entities/state/attributes/doc/ConsumableStateAttribute.op...

34 lines
753 B
JSON

{
"components": {
"schemas": {
"ConsumableStateAttribute": {
"allOf": [
{
"$ref": "#/components/schemas/StateAttribute"
},
{
"type": "object",
"properties": {
"remaining": {
"type": "object",
"properties": {
"value": {
"type": "number"
},
"unit": {
"type": "string",
"enum": [
"percent",
"minutes"
]
}
}
}
}
}
]
}
}
}
}