Skip to content

Commit d4eeb7f

Browse files
committed
Minify images, fix validation schema error due to missing i2cAddresses list
1 parent 01576ac commit d4eeb7f

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed
-68.3 KB
Loading

components/i2c_output/quadalphanum/definition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"displayName": "Quad Alphanumeric Display",
2+
"displayName": "Quad Alphanum. Display",
33
"published": true,
44
"vendor": "Adafruit",
55
"productURL": "https://www.adafruit.com/product/1911",
-73.8 KB
Loading

components/i2c_output/schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"title": "I2C Output Component Definition",
33
"description": "I2C Output component for use in Adafruit IO",
44
"type": "object",
5-
"required": [ "displayName", "vendor", "outputType"],
5+
"required": [ "displayName", "vendor", "outputType", "i2cAddresses"],
66
"additionalProperties": false,
77
"properties": {
88
"displayName": {
@@ -37,6 +37,14 @@
3737
"minLength": 3,
3838
"maxLength": 24
3939
},
40+
"i2cAddresses": {
41+
"description": "List of supported I2C addresses for this component.",
42+
"type": "array",
43+
"items": {
44+
"type": "string",
45+
"pattern": "^0x[0-9A-Fa-f]{2}$"
46+
}
47+
},
4048
"outputType": {
4149
"description": "The type of i2c output component. Corresponds to `I2cOutputAdd` in i2c.proto",
4250
"type": "string",

0 commit comments

Comments
 (0)