mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Fix new iframe panel url (#11850)
* Fix new iframe panel url * fix tests
This commit is contained in:
parent
8c627e2b8b
commit
b224fd324d
@ -71,7 +71,7 @@ NO_TIMEOUT = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
NO_AUTH = {
|
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({})
|
SCHEMA_NO_DATA = vol.Schema({})
|
||||||
|
@ -395,7 +395,7 @@ def test_forward_request_no_auth_for_panel(hassio_client, build_type):
|
|||||||
patch('homeassistant.components.hassio._create_response') as mresp:
|
patch('homeassistant.components.hassio._create_response') as mresp:
|
||||||
mresp.return_value = 'response'
|
mresp.return_value = 'response'
|
||||||
resp = yield from hassio_client.get(
|
resp = yield from hassio_client.get(
|
||||||
'/api/hassio/panel_{}'.format(build_type))
|
'/api/hassio/app-{}'.format(build_type))
|
||||||
|
|
||||||
# Check we got right response
|
# Check we got right response
|
||||||
assert resp.status == 200
|
assert resp.status == 200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user