Rename login_backend to auth_api (#764)

* Update const.py

* Update validate.py

* Update addon.py

* Update auth.py

* Update addons.py

* Update API.md
This commit is contained in:
Pascal Vizeli
2018-10-16 12:33:40 +02:00
committed by GitHub
parent 84f791220e
commit aa8ab593c0
6 changed files with 10 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ class APIAuth(CoreSysAttributes):
"""Process login request."""
addon = request[REQUEST_FROM]
if not addon.with_login_backend:
if not addon.access_auth_api:
raise APIForbidden("Can't use Home Assistant auth!")
# BasicAuth