mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 07:54:25 +01:00
Update icons.py
This commit is contained in:
@@ -51,6 +51,8 @@ def map_to_mdi_name(ha_type, state=None, device_class=None):
|
||||
return "check-circle-outline" if state == "on" else "close-circle-outline"
|
||||
if ha_type == "cover":
|
||||
return "window-open" if state == "open" else "window-closed"
|
||||
if ha_type == "lock":
|
||||
return "lock-open" if state == "open" else "lock"
|
||||
|
||||
elif ha_type == "sensor":
|
||||
if state == "on":
|
||||
|
||||
Reference in New Issue
Block a user