Skip to content

Commit

Permalink
add missing schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Hofmann committed Feb 9, 2021
1 parent 177036a commit 74a962a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 19 additions & 2 deletions tuya-mqtt/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Local Tuya MQTT Bridge",
"version": "0.1.0",
"version": "0.1.1",
"slug": "local_tuya_mqtt",
"description": "Connect Tuya devices via mqtt.",
"url": "https://github.com/m2hofi94/my-hassio-addons/tree/master/tuya-mqtt",
Expand All @@ -21,6 +21,23 @@
},
"tuya_mqtt_devices": null
},
"schema": false,
"schema": {
"log_level": "str",
"discover_mqtt_broker": "bool",
"tuya_mqtt_config": {
"topic": "str",
"qos": "int"
},
"tuya_mqtt_devices": [
{
"name": "str",
"id": "str",
"key": "str",
"ip": "str",
"version": "str",
"type": "str"
}
]
},
"image": "m2hofi94/{arch}-hassio-tuya-mqtt"
}
2 changes: 2 additions & 0 deletions tuya-mqtt/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

CONFIG_PATH=/data/options.json

bashio::log.level "$(bashio::config 'log_level')"

config="$(bashio::config 'tuya_mqtt_config')"
Expand Down

0 comments on commit 74a962a

Please sign in to comment.