mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-21 04:44:31 +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
5
configurator/CHANGELOG.md
Normal file
5
configurator/CHANGELOG.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## 0.2.4
|
||||
- YAML lint support
|
||||
- Support new Hass.io token system
|
||||
@@ -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",
|
||||
|
||||
@@ -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