mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
Fix power button on media page
This commit is contained in:
@@ -254,7 +254,7 @@ class LuiPagesGen(object):
|
|||||||
speakerlist = "?".join(speakerlist)
|
speakerlist = "?".join(speakerlist)
|
||||||
bits = entity.attributes.supported_features
|
bits = entity.attributes.supported_features
|
||||||
onoffbutton = "disable"
|
onoffbutton = "disable"
|
||||||
if bits & 0b01000000:
|
if bits & 0b10000000:
|
||||||
if entity.state == "off":
|
if entity.state == "off":
|
||||||
onoffbutton = 1374
|
onoffbutton = 1374
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user