Allow Hass.io panel dir (#14655)

This commit is contained in:
Paulus Schoutsen 2018-05-27 17:17:19 -04:00 committed by GitHub
parent 13859388c1
commit b6e4a7771a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ NO_TIMEOUT = {
} }
NO_AUTH = { NO_AUTH = {
re.compile(r'^app-(es5|latest)/(index|hassio-app).html$'), re.compile(r'^app-(es5|latest)/.+$'),
re.compile(r'^addons/[^/]*/logo$') re.compile(r'^addons/[^/]*/logo$')
} }

View file

@ -48,7 +48,7 @@ def test_auth_required_forward_request(hassio_client):
@pytest.mark.parametrize( @pytest.mark.parametrize(
'build_type', [ 'build_type', [
'es5/index.html', 'es5/hassio-app.html', 'latest/index.html', 'es5/index.html', 'es5/hassio-app.html', 'latest/index.html',
'latest/hassio-app.html' 'latest/hassio-app.html', 'es5/some-chunk.js', 'es5/app.js',
]) ])
def test_forward_request_no_auth_for_panel(hassio_client, build_type): def test_forward_request_no_auth_for_panel(hassio_client, build_type):
"""Test no auth needed for .""" """Test no auth needed for ."""