mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
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
This commit is contained in:
committed by
Pascal Vizeli
parent
e465bdc45f
commit
417cc7dda2
@@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# 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
|
## 0.2.4
|
||||||
- YAML lint support
|
- YAML lint support
|
||||||
- Support new Hass.io token system
|
- Support new Hass.io token system
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Configurator",
|
"name": "Configurator",
|
||||||
"version": "0.2.4",
|
"version": "0.2.5",
|
||||||
"slug": "configurator",
|
"slug": "configurator",
|
||||||
"description": "Browser-based configuration file editor for Home Assistant.",
|
"description": "Browser-based configuration file editor for Home Assistant.",
|
||||||
"url": "https://home-assistant.io/addons/configurator",
|
"url": "https://home-assistant.io/addons/configurator",
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
"banned_ips": ["str"],
|
"banned_ips": ["str"],
|
||||||
"banlimit": "int",
|
"banlimit": "int",
|
||||||
"ignore_pattern": ["str"],
|
"ignore_pattern": ["str"],
|
||||||
"dirsfirst": "bool"
|
"dirsfirst": "bool",
|
||||||
|
"sesame": "str?"
|
||||||
},
|
},
|
||||||
"image": "homeassistant/{arch}-addon-configurator"
|
"image": "homeassistant/{arch}-addon-configurator"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ with hassio_options.open('r') as json_file:
|
|||||||
configurator = {
|
configurator = {
|
||||||
'BASEPATH': "/config",
|
'BASEPATH': "/config",
|
||||||
'HASS_API': "http://hassio/homeassistant/api/",
|
'HASS_API': "http://hassio/homeassistant/api/",
|
||||||
'HASS_API_PASSWORD': os.environ.get('API_TOKEN'),
|
'HASS_API_PASSWORD': os.environ.get('HASSIO_TOKEN', ''),
|
||||||
'CREDENTIALS':
|
'CREDENTIALS':
|
||||||
"{}:{}".format(options['username'], options['password']),
|
"{}:{}".format(options['username'], options['password']),
|
||||||
'SSL_CERTIFICATE':
|
'SSL_CERTIFICATE':
|
||||||
@@ -25,6 +25,7 @@ configurator = {
|
|||||||
'IGNORE_PATTERN': options['ignore_pattern'],
|
'IGNORE_PATTERN': options['ignore_pattern'],
|
||||||
'BANLIMIT': options['banlimit'],
|
'BANLIMIT': options['banlimit'],
|
||||||
'DIRSFIRST': options['dirsfirst'],
|
'DIRSFIRST': options['dirsfirst'],
|
||||||
|
'SESAME': options.get('sesame'),
|
||||||
}
|
}
|
||||||
|
|
||||||
with Path(sys.argv[1]).open('w') as json_file:
|
with Path(sys.argv[1]).open('w') as json_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user