Fixing bug when connecting to squeezebox and it is a float
parent
6da88108fe
commit
2812fae721
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue