fix volume slider

This commit is contained in:
Johannes Braun
2022-03-07 17:37:11 +01:00
parent 36beb87c93
commit e652885b5f

View File

@@ -192,10 +192,11 @@ class NsPanelLovelanceUI:
if(btype == "positionSlider"):
pos = int(optVal)
self.api.get_entity(entity_id).call_service("volume_set", volume_level=pos)
self.api.get_entity(entity_id).call_service("volume_set", position=pos)
if(btype == "volumeSlider"):
self.api.get_entity(entity_id).call_service("", position=pos)
pos = int(optVal)
self.api.get_entity(entity_id).call_service("", volume_level=pos)
def register_callbacks(self):
items = []