Skip to content

Commit b570fd3

Browse files
authored
Replace legacy hass icons to mdi icons (home-assistant#153204)
1 parent 9d94e6b commit b570fd3

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

homeassistant/components/calendar/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
315315
hass.http.register_view(CalendarListView(component))
316316
hass.http.register_view(CalendarEventView(component))
317317

318-
frontend.async_register_built_in_panel(
319-
hass, "calendar", "calendar", "hass:calendar"
320-
)
318+
frontend.async_register_built_in_panel(hass, "calendar", "calendar", "mdi:calendar")
321319

322320
websocket_api.async_register_command(hass, handle_calendar_event_create)
323321
websocket_api.async_register_command(hass, handle_calendar_event_delete)

homeassistant/components/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
5050
"""Set up the config component."""
5151
frontend.async_register_built_in_panel(
52-
hass, "config", "config", "hass:cog", require_admin=True
52+
hass, "config", "config", "mdi:cog", require_admin=True
5353
)
5454

5555
for panel in SECTIONS:

homeassistant/components/frontend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
459459
"developer-tools",
460460
require_admin=True,
461461
sidebar_title="developer_tools",
462-
sidebar_icon="hass:hammer",
462+
sidebar_icon="mdi:hammer",
463463
)
464464

465465
@callback

homeassistant/components/history/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
4747
"""Set up the history hooks."""
4848
hass.http.register_view(HistoryPeriodView())
49-
frontend.async_register_built_in_panel(hass, "history", "history", "hass:chart-box")
49+
frontend.async_register_built_in_panel(hass, "history", "history", "mdi:chart-box")
5050
websocket_api.async_setup(hass)
5151
return True
5252

homeassistant/components/logbook/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def log_message(service: ServiceCall) -> None:
115115
async_log_entry(hass, name, message, domain, entity_id, service.context)
116116

117117
frontend.async_register_built_in_panel(
118-
hass, "logbook", "logbook", "hass:format-list-bulleted-type"
118+
hass, "logbook", "logbook", "mdi:format-list-bulleted-type"
119119
)
120120

121121
recorder_conf = config.get(RECORDER_DOMAIN, {})

homeassistant/components/lovelace/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
DOMAIN = "lovelace"
2525
LOVELACE_DATA: HassKey[LovelaceData] = HassKey(DOMAIN)
2626

27-
DEFAULT_ICON = "hass:view-dashboard"
27+
DEFAULT_ICON = "mdi:view-dashboard"
2828

2929
MODE_YAML = "yaml"
3030
MODE_STORAGE = "storage"

homeassistant/components/media_source/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def async_setup(hass: HomeAssistant) -> None:
2525
websocket_api.async_register_command(hass, websocket_browse_media)
2626
websocket_api.async_register_command(hass, websocket_resolve_media)
2727
frontend.async_register_built_in_panel(
28-
hass, "media-browser", "media_browser", "hass:play-box-multiple"
28+
hass, "media-browser", "media_browser", "mdi:play-box-multiple"
2929
)
3030

3131

0 commit comments

Comments
 (0)