This commit is contained in:
Johannes
2022-03-21 23:48:49 +01:00
committed by GitHub
parent 60c40d56e5
commit 4292a34c11

View File

@@ -491,7 +491,7 @@ class LovelaceUIPanel:
icon_id = get_icon_id("check-circle-outline")
else:
icon_id = get_icon_id("close-circle-outline")
return f",switch,{item},{icon_id},{icon_color},{name},{switch_val}"
return f",switch,{item},{icon_id},{icon_color},{name},{switch_val}"
if item_type == "sensor":
# maps ha device classes to material design icons