mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Merge pull request #354 from rhooper/sonos
squash bug in volume_level (bad if statement)
This commit is contained in:
commit
b01ff81b47
@ -93,8 +93,7 @@ class SonosDevice(MediaPlayerDevice):
|
||||
@property
|
||||
def volume_level(self):
|
||||
""" Volume level of the media player (0..1). """
|
||||
if 'mixer volume' in self._status:
|
||||
return self._player.volume / 100.0
|
||||
return self._player.volume / 100.0
|
||||
|
||||
@property
|
||||
def is_volume_muted(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user