Fix parsing to handle when volume is a float (#11151)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
pull/11161/head
Mark Hilbush 2021-08-24 08:44:02 -04:00 committed by GitHub
parent 4988522173
commit 5cb228570d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ public class SqueezeBoxServerHandler extends BaseBridgeHandler {
String volumeStringValue = decode(messageParts[3]);
updatePlayer(listener -> {
try {
int volume = Integer.parseInt(volumeStringValue);
int volume = Math.round(Float.parseFloat(volumeStringValue));
// Check if we received a relative volume change, or an absolute
// volume value.