Update icons.py

This commit is contained in:
joBr99
2022-04-20 17:55:35 +02:00
committed by GitHub
parent a65ff28106
commit eb219462be

View File

@@ -42,7 +42,7 @@ def map_to_mdi_name(ha_type, state=None, device_class=None):
if ha_type == "script":
return "script-text"
if ha_type == "switch":
return "light-switch" if state == "on" else "light-switch-off"
return "light-switch"
if ha_type == "number":
return "ray-vertex"
if ha_type == "light":