Update icons.py

This commit is contained in:
joBr99
2022-05-05 21:21:06 +02:00
committed by GitHub
parent 8750ed5567
commit c1bc4037a9

View File

@@ -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" return "check-circle-outline" if state == "on" else "close-circle-outline"
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":
return "lock-open" if state == "open" else "lock"
elif ha_type == "sensor": elif ha_type == "sensor":
if state == "on": if state == "on":