mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Add extra check for tuple length to avoid out of range error in Frontend resolver (#66470)
This commit is contained in:
parent
45341c69c2
commit
7474e2f96a
@ -533,6 +533,7 @@ class IndexView(web_urldispatcher.AbstractResource):
|
|||||||
"""
|
"""
|
||||||
if (
|
if (
|
||||||
request.path != "/"
|
request.path != "/"
|
||||||
|
and len(request.url.parts) > 1
|
||||||
and request.url.parts[1] not in self.hass.data[DATA_PANELS]
|
and request.url.parts[1] not in self.hass.data[DATA_PANELS]
|
||||||
):
|
):
|
||||||
return None, set()
|
return None, set()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user