Update HASS-Configurator (#221)

* Bumped version

* Create CHANGELOG.md

* support new API token feature

* Update CHANGELOG.md
This commit is contained in:
Daniel Perna
2018-01-03 16:04:22 +01:00
committed by Pascal Vizeli
parent 9635112f1f
commit 78be388458
3 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
# Changelog
## 0.2.4
- YAML lint support
- Support new Hass.io token system

View File

@@ -1,6 +1,6 @@
{
"name": "Configurator",
"version": "0.2.3",
"version": "0.2.4",
"slug": "configurator",
"description": "Browser-based configuration file editor for Home Assistant.",
"url": "https://home-assistant.io/addons/configurator",

View File

@@ -1,5 +1,6 @@
"""Mapping hass.io options.json into configurator config."""
import json
import os
from pathlib import Path
import sys
@@ -12,7 +13,7 @@ with hassio_options.open('r') as json_file:
configurator = {
'BASEPATH': "/config",
'HASS_API': "http://hassio/homeassistant/api/",
'HASS_API_PASSWORD': None,
'HASS_API_PASSWORD': os.environ.get('API_TOKEN'),
'CREDENTIALS':
"{}:{}".format(options['username'], options['password']),
'SSL_CERTIFICATE':