mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
fix volume slider
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user