Update icons.py

This commit is contained in:
Johannes
2022-04-19 23:49:23 +02:00
committed by GitHub
parent 502fcde9b8
commit ce3b4301cc

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 "flash"
return "light-switch" if state == "on" else "light-switch-off"
if ha_type == "number":
return "ray-vertex"
if ha_type == "light":