mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
Move configurator to new API (#189)
* Update config.json * Update map.py * Update config.json
This commit is contained in:
@@ -1,19 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "Configurator",
|
"name": "Configurator",
|
||||||
"version": "0.2.0-p1",
|
"version": "0.2.0-p2",
|
||||||
"slug": "configurator",
|
"slug": "configurator",
|
||||||
"description": "Browser-based configuration file editor for Home Assistant.",
|
"description": "Browser-based configuration file editor for Home Assistant.",
|
||||||
"url": "https://home-assistant.io/addons/configurator",
|
"url": "https://home-assistant.io/addons/configurator",
|
||||||
"startup": "application",
|
"startup": "application",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:3218]",
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:3218]",
|
||||||
|
"homeassistant_api": true,
|
||||||
"boot": "auto",
|
"boot": "auto",
|
||||||
"ports": {
|
"ports": {
|
||||||
"3218/tcp": 3218
|
"3218/tcp": 3218
|
||||||
},
|
},
|
||||||
"map": ["config:rw", "ssl"],
|
"map": ["config:rw", "ssl"],
|
||||||
"options": {
|
"options": {
|
||||||
"homeassistant_api": "http://homeassistant:8123/api",
|
|
||||||
"homeassistant_password": "",
|
|
||||||
"username": "admin",
|
"username": "admin",
|
||||||
"password": null,
|
"password": null,
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
@@ -24,8 +23,6 @@
|
|||||||
"ignore_pattern": ["__pycache__"]
|
"ignore_pattern": ["__pycache__"]
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"homeassistant_api": "url",
|
|
||||||
"homeassistant_password": "str",
|
|
||||||
"username": "str",
|
"username": "str",
|
||||||
"password": "match(.+)",
|
"password": "match(.+)",
|
||||||
"certfile": "str",
|
"certfile": "str",
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ with hassio_options.open('r') as json_file:
|
|||||||
|
|
||||||
configurator = {
|
configurator = {
|
||||||
'BASEPATH': "/config",
|
'BASEPATH': "/config",
|
||||||
'HASS_API': options['homeassistant_api'],
|
'HASS_API': "http://hassio/homeassistant/api",
|
||||||
'HASS_API_PASSWORD': options['homeassistant_password'],
|
'HASS_API_PASSWORD': "",
|
||||||
'CREDENTIALS':
|
'CREDENTIALS':
|
||||||
"{}:{}".format(options['username'], options['password']),
|
"{}:{}".format(options['username'], options['password']),
|
||||||
'SSL_CERTIFICATE':
|
'SSL_CERTIFICATE':
|
||||||
|
|||||||
Reference in New Issue
Block a user