Skip to content

Commit 4be1fa9

Browse files
authored
Provide icon and title for lovelace panel (home-assistant#156955)
1 parent 149c1e6 commit 4be1fa9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

homeassistant/components/lovelace/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
135135
mode = config[DOMAIN][CONF_MODE]
136136
yaml_resources = config[DOMAIN].get(CONF_RESOURCES)
137137

138-
frontend.async_register_built_in_panel(hass, DOMAIN, config={"mode": mode})
138+
frontend.async_register_built_in_panel(
139+
hass,
140+
DOMAIN,
141+
config={"mode": mode},
142+
sidebar_title="overview",
143+
sidebar_icon="mdi:view-dashboard",
144+
sidebar_default_visible=False,
145+
)
139146

140147
async def reload_resources_service_handler(service_call: ServiceCall) -> None:
141148
"""Reload yaml resources."""

0 commit comments

Comments
 (0)