mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Merge pull request #295 from renekliment/mpd-pause-fix
fixes MPD play/pause
This commit is contained in:
commit
335eb10d11
@ -214,11 +214,11 @@ class MpdDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
def media_play(self):
|
def media_play(self):
|
||||||
""" Service to send the MPD the command for play/pause. """
|
""" Service to send the MPD the command for play/pause. """
|
||||||
self.client.start()
|
self.client.pause(0)
|
||||||
|
|
||||||
def media_pause(self):
|
def media_pause(self):
|
||||||
""" Service to send the MPD the command for play/pause. """
|
""" Service to send the MPD the command for play/pause. """
|
||||||
self.client.pause()
|
self.client.pause(1)
|
||||||
|
|
||||||
def media_next_track(self):
|
def media_next_track(self):
|
||||||
""" Service to send the MPD the command for next track. """
|
""" Service to send the MPD the command for next track. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user