mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-19 20:54:43 +01:00
Update icon_mapping.py
This commit is contained in:
@@ -6904,6 +6904,8 @@ def get_icon_id(ma_name):
|
||||
return ma_name.replace("text:","")
|
||||
if "ha:" in ma_name:
|
||||
return apis.ha_api.render_template(ma_name.replace("ha:",""))
|
||||
if "ha-i:" in ma_name:
|
||||
ma_name = apis.ha_api.render_template(ma_name.replace("ha:",""))
|
||||
ma_name = ma_name.replace("mdi:","")
|
||||
if ma_name in icons:
|
||||
return icons[ma_name]
|
||||
|
||||
Reference in New Issue
Block a user