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",
|
||||
"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",
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user