mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +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
|
@property
|
||||||
def volume_level(self):
|
def volume_level(self):
|
||||||
""" Volume level of the media player (0..1). """
|
""" 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
|
@property
|
||||||
def is_volume_muted(self):
|
def is_volume_muted(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user