Update icons.py

This commit is contained in:
Johannes
2022-04-20 17:55:35 +02:00
committed by GitHub
parent 0d5451cd21
commit d9016c4df4

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":