From e652885b5f1e13285df1cb2895688978b6417d42 Mon Sep 17 00:00:00 2001 From: Johannes Braun Date: Mon, 7 Mar 2022 17:37:11 +0100 Subject: [PATCH] fix volume slider --- apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py index c8ebc0b6..492bb4ed 100644 --- a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py +++ b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py @@ -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 = []