This commit is contained in:
Johannes
2022-03-28 22:15:36 +02:00
parent 8366555eed
commit 2c1868ba29

View File

@@ -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])