Update controller.py

This commit is contained in:
joBr99
2022-11-28 17:37:58 +01:00
committed by GitHub
parent 0bf84a3b0d
commit 9f468524cd

View File

@@ -327,7 +327,7 @@ class LuiController(object):
else:
apis.ha_api.get_entity(entity_id).call_service("turn_off")
if button_type == "media-shuffle":
suffle = not apis.ha_api.get_entity(entity_id).shuffle
suffle = not apis.ha_api.get_entity(entity_id).attributes.shuffle
apis.ha_api.get_entity(entity_id).call_service("shuffle_set", shuffle=suffle)
if button_type == "volumeSlider":
pos = int(value)