mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 22:18:38 +01:00
fixed method call
This commit is contained in:
@@ -484,7 +484,7 @@ class NsPanelLovelaceUI:
|
|||||||
|
|
||||||
if item_type == "light":
|
if item_type == "light":
|
||||||
switch_val = 1 if entity.state == "on" else 0
|
switch_val = 1 if entity.state == "on" else 0
|
||||||
icon_color = getEntityColor(entity)
|
icon_color = self.getEntityColor(entity)
|
||||||
return f",{item_type},{item},{get_icon_id('lightbulb')},{icon_color},{name},{switch_val}"
|
return f",{item_type},{item},{get_icon_id('lightbulb')},{icon_color},{name},{switch_val}"
|
||||||
|
|
||||||
if item_type == "switch" or item_type == "input_boolean":
|
if item_type == "switch" or item_type == "input_boolean":
|
||||||
@@ -644,7 +644,7 @@ class NsPanelLovelaceUI:
|
|||||||
entity = self.api.get_entity(entity)
|
entity = self.api.get_entity(entity)
|
||||||
switch_val = 1 if entity.state == "on" else 0
|
switch_val = 1 if entity.state == "on" else 0
|
||||||
|
|
||||||
icon_color = getEntityColor(entity)
|
icon_color = self.getEntityColor(entity)
|
||||||
|
|
||||||
brightness = "disable"
|
brightness = "disable"
|
||||||
color_temp = "disable"
|
color_temp = "disable"
|
||||||
|
|||||||
Reference in New Issue
Block a user