diff --git a/xiaomusic/httpserver.py b/xiaomusic/httpserver.py index 21e7dccf2..20e5954d6 100644 --- a/xiaomusic/httpserver.py +++ b/xiaomusic/httpserver.py @@ -67,7 +67,7 @@ async def getvolume(): async def setvolume(): data = request.get_json() did = data.get("did") - volume = data.get("volume") + volume = int(data.get("volume")) if not xiaomusic.did_exist(did): return {"ret": "Did not exist"}