Move configurator to new API (#189)

* Update config.json

* Update map.py

* Update config.json
This commit is contained in:
Pascal Vizeli
2017-10-10 09:50:30 +02:00
committed by GitHub
parent 43bda5e5ce
commit 95a179ec3f
2 changed files with 4 additions and 7 deletions

View File

@@ -1,19 +1,18 @@
{
"name": "Configurator",
"version": "0.2.0-p1",
"version": "0.2.0-p2",
"slug": "configurator",
"description": "Browser-based configuration file editor for Home Assistant.",
"url": "https://home-assistant.io/addons/configurator",
"startup": "application",
"webui": "[PROTO:ssl]://[HOST]:[PORT:3218]",
"homeassistant_api": true,
"boot": "auto",
"ports": {
"3218/tcp": 3218
},
"map": ["config:rw", "ssl"],
"options": {
"homeassistant_api": "http://homeassistant:8123/api",
"homeassistant_password": "",
"username": "admin",
"password": null,
"certfile": "fullchain.pem",
@@ -24,8 +23,6 @@
"ignore_pattern": ["__pycache__"]
},
"schema": {
"homeassistant_api": "url",
"homeassistant_password": "str",
"username": "str",
"password": "match(.+)",
"certfile": "str",

View File

@@ -11,8 +11,8 @@ with hassio_options.open('r') as json_file:
configurator = {
'BASEPATH': "/config",
'HASS_API': options['homeassistant_api'],
'HASS_API_PASSWORD': options['homeassistant_password'],
'HASS_API': "http://hassio/homeassistant/api",
'HASS_API_PASSWORD': "",
'CREDENTIALS':
"{}:{}".format(options['username'], options['password']),
'SSL_CERTIFICATE':