mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 18:06:59 +01:00
fix icon for switches
This commit is contained in:
@@ -391,7 +391,9 @@ class NsPanelLovelaceUI:
|
|||||||
if item_type == "switch" or item_type == "input_boolean":
|
if item_type == "switch" or item_type == "input_boolean":
|
||||||
switch_val = 1 if entity.state == "on" else 0
|
switch_val = 1 if entity.state == "on" else 0
|
||||||
icon_id = 4
|
icon_id = 4
|
||||||
if item_type == "input_boolean" and switch_val == 1:
|
self.api.log("test_test: %s", item_type)
|
||||||
|
if item_type == "input_boolean":
|
||||||
|
if switch_val == 1:
|
||||||
icon_id = 6
|
icon_id = 6
|
||||||
else:
|
else:
|
||||||
icon_id = 7
|
icon_id = 7
|
||||||
|
|||||||
Reference in New Issue
Block a user