mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
Fix 'ha-i:' icon rendering (#777)
This commit is contained in:
@@ -6905,7 +6905,7 @@ def get_icon_id(ma_name):
|
||||
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 = apis.ha_api.render_template(ma_name.replace("ha-i:",""))
|
||||
ma_name = ma_name.replace("mdi:","")
|
||||
if ma_name in icons:
|
||||
return icons[ma_name]
|
||||
|
||||
Reference in New Issue
Block a user