Hass.io panel v2 (#11860)

* Update hassio.py

* fix test

* Update test_hassio.py
This commit is contained in:
Pascal Vizeli 2018-01-23 11:39:55 +01:00 committed by GitHub
parent 3417c6ad8d
commit 6df1fae447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -384,7 +384,11 @@ def test_auth_required_forward_request(hassio_client):
@asyncio.coroutine
@pytest.mark.parametrize('build_type', ['es5', 'latest'])
@pytest.mark.parametrize(
'build_type', [
'es5/index.html', 'es5/hassio-app.html', 'latest/index.html',
'latest/hassio-app.html'
])
def test_forward_request_no_auth_for_panel(hassio_client, build_type):
"""Test no auth needed for ."""
response = MagicMock()