From f5c58748b7bc89a8eee2eea80c54b15f9424724d Mon Sep 17 00:00:00 2001 From: Jose Juan Montes Date: Sat, 11 Feb 2017 10:07:31 +0100 Subject: [PATCH] Adds play URL support to mpd (makes it work with tts). (#5863) * Adds play URL support to mpd (makes it work with tts). * Removed extra line at the end of the file. --- homeassistant/components/media_player/mpd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/media_player/mpd.py b/homeassistant/components/media_player/mpd.py index 48d22dab021..9d3a0928866 100644 --- a/homeassistant/components/media_player/mpd.py +++ b/homeassistant/components/media_player/mpd.py @@ -266,5 +266,6 @@ class MpdDevice(MediaPlayerDevice): self.client.load(media_id) self.client.play() else: - _LOGGER.error(str.format("Invalid media type. Expected: {0}", - MEDIA_TYPE_PLAYLIST)) + self.client.clear() + self.client.add(media_id) + self.client.play()