Skip to content

Commit 42ae245

Browse files
committed
fixed volume command
1 parent f493ce0 commit 42ae245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/divoom/devices/divoom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def send_volume(self, value=None):
319319
if isinstance(value, str): value = int(value)
320320

321321
args = []
322-
args += (value / 100 * 15).to_bytes(1, byteorder='big')
322+
args += int(value * 15 / 100).to_bytes(1, byteorder='big')
323323
self.send_command("set volume", args, skipRead=True)
324324

325325
def send_keyboard(self, value=None):

0 commit comments

Comments
 (0)