mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-17 10:27:00 +01:00
fix input_boolean icon
This commit is contained in:
@@ -462,7 +462,7 @@ class LovelaceUIPanel:
|
|||||||
return f",{item_type},{item},{icon_id},{icon_color},{name},{switch_val}"
|
return f",{item_type},{item},{icon_id},{icon_color},{name},{switch_val}"
|
||||||
|
|
||||||
if item_type == "switch" or item_type == "input_boolean":
|
if item_type == "switch" or item_type == "input_boolean":
|
||||||
icon_id = get_icon_id_ha(item_type, overwrite=icon)
|
icon_id = get_icon_id_ha(item_type, state=entity.state, overwrite=icon)
|
||||||
switch_val = 1 if entity.state == "on" else 0
|
switch_val = 1 if entity.state == "on" else 0
|
||||||
icon_color = self.getEntityColor(entity)
|
icon_color = self.getEntityColor(entity)
|
||||||
return f",switch,{item},{icon_id},{icon_color},{name},{switch_val}"
|
return f",switch,{item},{icon_id},{icon_color},{name},{switch_val}"
|
||||||
|
|||||||
Reference in New Issue
Block a user