Add schema validation to configuration

This commit is contained in:
Max Winterstein
2021-01-02 16:55:03 +01:00
parent a1be30cd2b
commit 880f5bfe1a
2 changed files with 41 additions and 26 deletions

View File

@@ -4,6 +4,7 @@
- Improve image recration by adding some cache buster
- Change to bashio logs
- Add `log_level` cofiguration option
- Add schema validation to configuration
## [0.4.0] - 2021-01-02
- Change base image to `hassioaddons/debian-base`

View File

@@ -1,30 +1,44 @@
{
"name":"Eufy Home Assistant MQTT Bridge",
"version":"0.4.0",
"slug":"eufy-ha-mqtt-bridge",
"description":"Publish events as MQTT messages",
"arch":[
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
"name": "Eufy Home Assistant MQTT Bridge",
"version": "0.5.0",
"slug": "eufy-ha-mqtt-bridge",
"description": "Publish events as MQTT messages",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup":"application",
"boot":"auto",
"options":{
"eufy":{
"username":"mail@example.org",
"password":"iliketurtles"
},
"mqtt":{
"url":"mqtt://192.168.x.x:1883",
"username":"homeassistant",
"password":"homeassistant"
}
"startup": "application",
"boot": "auto",
"options": {
"eufy": {
"username": "mail@example.org",
"password": "iliketurtles"
},
"mqtt": {
"url": "mqtt://192.168.x.x:1883",
"username": "homeassistant",
"password": "homeassistant"
},
"log_level": "info"
},
"schema":false,
"stage":"experimental",
"url":"https://github.com/matijse/eufy-ha-mqtt-bridge/",
"map": ["share:rw"]
"schema": {
"eufy": {
"username": "str",
"password": "str"
},
"mqtt": {
"url": "str",
"username": "str?",
"password": "str?"
},
"log_level": "list(error|warn|info|http|verbose|debug|silly)"
},
"stage": "experimental",
"url": "https://github.com/matijse/eufy-ha-mqtt-bridge/",
"map": [
"share:rw"
]
}