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

@@ -26,13 +26,11 @@ class APIHomeAssistant(object):
@api_process
async def info(self, request):
"""Return host information."""
info = {
return {
ATTR_VERSION: self.homeassistant.version,
ATTR_LAST_VERSION: self.config.last_homeassistant,
}
return info
@api_process
async def update(self, request):
"""Update homeassistant."""