Add security api and TOTP on supervisor (#41)

* Add security api and TOTP on supervisor

* finish security api

* fix lint

* fix lint p2

* add new api view to init

* Task session cleanup / fix hass wachdog

* fix lint

* fix api return

* fix check
This commit is contained in:
Pascal Vizeli
2017-05-10 22:02:47 +02:00
committed by GitHub
parent b76cd5c004
commit 956af2bd62
10 changed files with 268 additions and 20 deletions

View File

@@ -18,6 +18,7 @@ RUN_UPDATE_INFO_TASKS = 28800
RUN_UPDATE_SUPERVISOR_TASKS = 29100
RUN_RELOAD_ADDONS_TASKS = 28800
RUN_WATCHDOG_HOMEASSISTANT = 15
RUN_CLEANUP_API_SESSIONS = 900
RESTART_EXIT_CODE = 100
@@ -62,6 +63,10 @@ ATTR_REPOSITORY = 'repository'
ATTR_REPOSITORIES = 'repositories'
ATTR_URL = 'url'
ATTR_MAINTAINER = 'maintainer'
ATTR_PASSWORD = 'password'
ATTR_TOTP = 'totp'
ATTR_INITIALIZE = 'initialize'
ATTR_SESSION = 'session'
STARTUP_BEFORE = 'before'
STARTUP_AFTER = 'after'