Fixing bug when connecting to squeezebox and it is a float

pull/613/head
Daren Lord 2015-11-11 16:21:42 -07:00
parent 6da88108fe
commit 2812fae721
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):