Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
33f1577d
Commit
33f1577d
authored
6 years ago
by
Jason Hu
Committed by
Paulus Schoutsen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Frontend component should auto load auth coomponent (#15606)
parent
ef3a8304
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
homeassistant/components/frontend/__init__.py
+2
-1
2 additions, 1 deletion
homeassistant/components/frontend/__init__.py
tests/components/frontend/test_init.py
+12
-0
12 additions, 0 deletions
tests/components/frontend/test_init.py
with
14 additions
and
1 deletion
homeassistant/components/frontend/__init__.py
+
2
−
1
View file @
33f1577d
...
...
@@ -29,7 +29,8 @@ from homeassistant.util.yaml import load_yaml
REQUIREMENTS
=
[
'
home-assistant-frontend==20180720.0
'
]
DOMAIN
=
'
frontend
'
DEPENDENCIES
=
[
'
api
'
,
'
websocket_api
'
,
'
http
'
,
'
system_log
'
,
'
onboarding
'
]
DEPENDENCIES
=
[
'
api
'
,
'
websocket_api
'
,
'
http
'
,
'
system_log
'
,
'
auth
'
,
'
onboarding
'
]
CONF_THEMES
=
'
themes
'
CONF_EXTRA_HTML_URL
=
'
extra_html_url
'
...
...
This diff is collapsed.
Click to expand it.
tests/components/frontend/test_init.py
+
12
−
0
View file @
33f1577d
...
...
@@ -336,3 +336,15 @@ async def test_lovelace_ui_load_err(hass, hass_ws_client):
assert
msg
[
'
type
'
]
==
wapi
.
TYPE_RESULT
assert
msg
[
'
success
'
]
is
False
assert
msg
[
'
error
'
][
'
code
'
]
==
'
load_error
'
async
def
test_auth_load
(
mock_http_client
):
"""
Test auth component loaded by default.
"""
resp
=
await
mock_http_client
.
get
(
'
/auth/providers
'
)
assert
resp
.
status
==
200
async
def
test_onboarding_load
(
mock_http_client
):
"""
Test onboarding component loaded by default.
"""
resp
=
await
mock_http_client
.
get
(
'
/api/onboarding
'
)
assert
resp
.
status
==
200
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment