mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-13 08:28:19 +01:00
Update icons.py
This commit is contained in:
@@ -42,7 +42,7 @@ def map_to_mdi_name(ha_type, state=None, device_class=None):
|
|||||||
if ha_type == "script":
|
if ha_type == "script":
|
||||||
return "script-text"
|
return "script-text"
|
||||||
if ha_type == "switch":
|
if ha_type == "switch":
|
||||||
return "flash"
|
return "light-switch" if state == "on" else "light-switch-off"
|
||||||
if ha_type == "number":
|
if ha_type == "number":
|
||||||
return "ray-vertex"
|
return "ray-vertex"
|
||||||
if ha_type == "light":
|
if ha_type == "light":
|
||||||
|
|||||||
Reference in New Issue
Block a user