Merge pull request #613 from Xorso/squeezebox_fix

Fixing bug when connecting to squeezebox and it is a float
pull/644/head^2
Paulus Schoutsen 2015-11-12 22:45:03 -08:00
commit bfaaf39e9e
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class SqueezeBoxDevice(MediaPlayerDevice):
def volume_level(self):
""" Volume level of the media player (0..1). """
if 'mixer volume' in self._status:
return int(self._status['mixer volume']) / 100.0
return int(float(self._status['mixer volume'])) / 100.0
@property
def is_volume_muted(self):