Add states to panels (#19026)
* Add states to panels * Line too long * remove extra urls for states * Update __init__.py
This commit is contained in:
parent
3928d034a3
commit
850caef5c1
1 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,8 @@ async def async_setup(hass, config):
|
||||||
await asyncio.wait(
|
await asyncio.wait(
|
||||||
[async_register_built_in_panel(hass, panel) for panel in (
|
[async_register_built_in_panel(hass, panel) for panel in (
|
||||||
'dev-event', 'dev-info', 'dev-service', 'dev-state',
|
'dev-event', 'dev-info', 'dev-service', 'dev-state',
|
||||||
'dev-template', 'dev-mqtt', 'kiosk', 'lovelace', 'profile')],
|
'dev-template', 'dev-mqtt', 'kiosk', 'lovelace',
|
||||||
|
'states', 'profile')],
|
||||||
loop=hass.loop)
|
loop=hass.loop)
|
||||||
|
|
||||||
hass.data[DATA_FINALIZE_PANEL] = async_finalize_panel
|
hass.data[DATA_FINALIZE_PANEL] = async_finalize_panel
|
||||||
|
@ -362,7 +363,6 @@ class IndexView(HomeAssistantView):
|
||||||
url = '/'
|
url = '/'
|
||||||
name = 'frontend:index'
|
name = 'frontend:index'
|
||||||
requires_auth = False
|
requires_auth = False
|
||||||
extra_urls = ['/states', '/states/{extra}']
|
|
||||||
|
|
||||||
def __init__(self, repo_path, js_option):
|
def __init__(self, repo_path, js_option):
|
||||||
"""Initialize the frontend view."""
|
"""Initialize the frontend view."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue