You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schema.json
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@
5
5
"description": "Library of battery types for devices",
6
6
"type": "object",
7
7
"properties": {
8
+
"$schema": {
9
+
"description": "Schema reference",
10
+
"type": "string"
11
+
},
8
12
"version": {
9
13
"description": "Version of the library schema",
10
14
"type": "integer"
@@ -21,23 +25,29 @@
21
25
],
22
26
"properties": {
23
27
"manufacturer": {
24
-
"type": "string"
28
+
"type": "string",
29
+
"description": "The manufacturer of the device as it appears in Home Assistant."
25
30
},
26
31
"model": {
27
-
"type": "string"
32
+
"type": "string",
33
+
"description": "The model of the device as it appears in Home Assistant."
28
34
},
29
35
"battery_type": {
30
-
"type": "string"
36
+
"type": "string",
37
+
"description": "The type of battery for the device. Should be the most common naming for general batteries, and the IEC naming for battery cells according to Wikipedia."
31
38
},
32
39
"battery_quantity": {
33
-
"type": "integer"
40
+
"type": "integer",
41
+
"exclusiveMinimum": 1,
42
+
"description": "The number of batteries required by the device. If a device only has one battery this property should be omitted."
0 commit comments