mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
fix
This commit is contained in:
@@ -252,7 +252,7 @@ class LuiPagesGen(object):
|
||||
bits = entity.attributes.supported_features
|
||||
onoffbutton = "disable"
|
||||
if bits & 0b01000000:
|
||||
if entity.state == "off"
|
||||
if entity.state == "off":
|
||||
onoffbutton = 1374
|
||||
else:
|
||||
onoffbutton = rgb_dec565([255,255,255])
|
||||
|
||||
Reference in New Issue
Block a user