mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
fixed stats for lock icon
This commit is contained in:
@@ -52,7 +52,7 @@ def map_to_mdi_name(ha_type, state=None, device_class=None):
|
|||||||
if ha_type == "cover":
|
if ha_type == "cover":
|
||||||
return "window-open" if state == "open" else "window-closed"
|
return "window-open" if state == "open" else "window-closed"
|
||||||
if ha_type == "lock":
|
if ha_type == "lock":
|
||||||
return "lock-open" if state == "open" else "lock"
|
return "lock-open" if state == "unlocked" else "lock"
|
||||||
|
|
||||||
elif ha_type == "sensor":
|
elif ha_type == "sensor":
|
||||||
if state == "on":
|
if state == "on":
|
||||||
|
|||||||
Reference in New Issue
Block a user