From d9016c4df4ba1b03ab333c92398e4d223e2e416c Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 20 Apr 2022 17:55:35 +0200 Subject: [PATCH] Update icons.py --- apps/nspanel-lovelace-ui/luibackend/icons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/icons.py b/apps/nspanel-lovelace-ui/luibackend/icons.py index 039b1566..24c33d2b 100644 --- a/apps/nspanel-lovelace-ui/luibackend/icons.py +++ b/apps/nspanel-lovelace-ui/luibackend/icons.py @@ -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":