mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 12:47:53 +00:00
squash bug in volume_level (bad if statement)
This commit is contained in:
parent
6cfca09daf
commit
6dcb87c54d
@ -93,7 +93,6 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user