[media_player.sonos] Send media_stop on turn_off (#7940)
This commit is contained in:
parent
d38acfbd39
commit
36eb0ceff3
1 changed files with 3 additions and 3 deletions
|
@ -524,7 +524,7 @@ class SonosDevice(MediaPlayerDevice):
|
||||||
support_previous_track = False
|
support_previous_track = False
|
||||||
support_next_track = False
|
support_next_track = False
|
||||||
support_play = False
|
support_play = False
|
||||||
support_stop = False
|
support_stop = True
|
||||||
support_pause = False
|
support_pause = False
|
||||||
|
|
||||||
if is_playing_tv:
|
if is_playing_tv:
|
||||||
|
@ -925,8 +925,8 @@ class SonosDevice(MediaPlayerDevice):
|
||||||
@soco_error
|
@soco_error
|
||||||
def turn_off(self):
|
def turn_off(self):
|
||||||
"""Turn off media player."""
|
"""Turn off media player."""
|
||||||
if self._support_pause:
|
if self._support_stop:
|
||||||
self.media_pause()
|
self.media_stop()
|
||||||
|
|
||||||
@soco_error
|
@soco_error
|
||||||
@soco_filter_upnperror(UPNP_ERRORS_TO_IGNORE)
|
@soco_filter_upnperror(UPNP_ERRORS_TO_IGNORE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue