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

@@ -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':