Fix power button on media page

This commit is contained in:
Johannes
2022-03-29 16:07:33 +02:00
committed by GitHub
parent 7a86c7a75a
commit f0bfbc6759

View File

@@ -254,7 +254,7 @@ class LuiPagesGen(object):
speakerlist = "?".join(speakerlist)
bits = entity.attributes.supported_features
onoffbutton = "disable"
if bits & 0b01000000:
if bits & 0b10000000:
if entity.state == "off":
onoffbutton = 1374
else: