Update controller.py

This commit is contained in:
Johannes
2022-11-28 17:37:58 +01:00
committed by GitHub
parent f096bcb44d
commit ce0133a8c0

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)