mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 05:34:20 +01:00
Update HASS-Configurator (#221)
* Bumped version * Create CHANGELOG.md * support new API token feature * Update CHANGELOG.md
This commit is contained in:
committed by
Pascal Vizeli
parent
9635112f1f
commit
78be388458
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user