fixed stats for lock icon

This commit is contained in:
joBr99
2022-05-06 08:47:43 +02:00
parent a5515e3838
commit cc1a1261d4

View File

@@ -52,7 +52,7 @@ def map_to_mdi_name(ha_type, state=None, device_class=None):
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"
return "lock-open" if state == "unlocked" else "lock"
elif ha_type == "sensor":
if state == "on":