Make serial and serial.port optional.

This commit is contained in:
Koen Kanters committed 2019-10-12 23:18:01 +02:00
1 parent d5925efca7
commit f3a51f66fd
1 file changed
+2 -3
+2 -3
View File
@@ -126,10 +126,9 @@ const schema = {
serial: {
type: 'object',
properties: {
port: {type: ['string', 'null']},
port: {type: ['string']},
disable_led: {type: 'boolean'},
},
required: ['port'],
},
ban: {type: 'array', items: {type: 'string'}},
whitelist: {type: 'array', items: {type: 'string'}},
@@ -230,7 +229,7 @@ const schema = {
},
},
},
required: ['homeassistant', 'permit_join', 'mqtt', 'serial'],
required: ['homeassistant', 'permit_join', 'mqtt'],
};