Skip to content

Commit 77566cd

Browse files
committed
Media issue on some systems that sets the volume to max #227
1 parent 55fde04 commit 77566cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnxlink/modules/media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def start_control(self, topic, data):
142142
if topic[-1] in ["set_volume", "volume_set"]:
143143
if data <= 1:
144144
data *= 100
145-
data = min(data, 100)
145+
data = int(min(data, 100))
146146
self._set_volume(data)
147147
elif len(self.players) > 0 and topic[-1] == "playpause":
148148
self.media_player.control_media("PlayPause")

0 commit comments

Comments
 (0)