From 417cc7dda200255e661e2aa656bc08b8944fac7c Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Mon, 29 Jan 2018 11:47:59 +0100 Subject: [PATCH] Update HASS Configurator to 0.2.5 (#238) * Update map.py * Update config.json * Update CHANGELOG.md * Update config.json * Update map.py * Update map.py --- configurator/CHANGELOG.md | 8 ++++++++ configurator/config.json | 6 +++--- configurator/map.py | 3 ++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/configurator/CHANGELOG.md b/configurator/CHANGELOG.md index 3aa3304..145fa1f 100644 --- a/configurator/CHANGELOG.md +++ b/configurator/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.5 +- Added warning-logs for access failure +- Added transparency to whitespace characters +- Using external repository for Docker +- Modify BANNED_IPS and ALLOWED_NETWORKS at runtime +- Use relative paths in webserver +- Added "Sesame" feature + ## 0.2.4 - YAML lint support - Support new Hass.io token system diff --git a/configurator/config.json b/configurator/config.json index 61dd777..11d6625 100644 --- a/configurator/config.json +++ b/configurator/config.json @@ -1,6 +1,6 @@ { "name": "Configurator", - "version": "0.2.4", + "version": "0.2.5", "slug": "configurator", "description": "Browser-based configuration file editor for Home Assistant.", "url": "https://home-assistant.io/addons/configurator", @@ -34,8 +34,8 @@ "banned_ips": ["str"], "banlimit": "int", "ignore_pattern": ["str"], - "dirsfirst": "bool" + "dirsfirst": "bool", + "sesame": "str?" }, "image": "homeassistant/{arch}-addon-configurator" } - diff --git a/configurator/map.py b/configurator/map.py index 777be95..691672a 100644 --- a/configurator/map.py +++ b/configurator/map.py @@ -13,7 +13,7 @@ with hassio_options.open('r') as json_file: configurator = { 'BASEPATH': "/config", 'HASS_API': "http://hassio/homeassistant/api/", - 'HASS_API_PASSWORD': os.environ.get('API_TOKEN'), + 'HASS_API_PASSWORD': os.environ.get('HASSIO_TOKEN', ''), 'CREDENTIALS': "{}:{}".format(options['username'], options['password']), 'SSL_CERTIFICATE': @@ -25,6 +25,7 @@ configurator = { 'IGNORE_PATTERN': options['ignore_pattern'], 'BANLIMIT': options['banlimit'], 'DIRSFIRST': options['dirsfirst'], + 'SESAME': options.get('sesame'), } with Path(sys.argv[1]).open('w') as json_file: