Fix new iframe panel url (#11850)

* Fix new iframe panel url

* fix tests
This commit is contained in:
Pascal Vizeli 2018-01-22 14:45:48 +01:00 committed by GitHub
parent 8c627e2b8b
commit b224fd324d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -395,7 +395,7 @@ def test_forward_request_no_auth_for_panel(hassio_client, build_type):
patch('homeassistant.components.hassio._create_response') as mresp:
mresp.return_value = 'response'
resp = yield from hassio_client.get(
'/api/hassio/panel_{}'.format(build_type))
'/api/hassio/app-{}'.format(build_type))
# Check we got right response
assert resp.status == 200