mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
squash bug in volume_level (bad if statement)
This commit is contained in:
parent
6cfca09daf
commit
6dcb87c54d
@ -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