From a1d586c79369ade1e5a3573d78f3f1b6b5ecbe53 Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Tue, 6 Feb 2018 13:46:44 -0500 Subject: [PATCH] Fix clear playlist in Volumio component (#12173) --- homeassistant/components/media_player/volumio.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/media_player/volumio.py b/homeassistant/components/media_player/volumio.py index 06d2304b3e7..84b957533fe 100644 --- a/homeassistant/components/media_player/volumio.py +++ b/homeassistant/components/media_player/volumio.py @@ -3,6 +3,8 @@ Volumio Platform. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.volumio/ + +Volumio rest API: https://volumio.github.io/docs/API/REST_API.html """ from datetime import timedelta import logging @@ -247,9 +249,9 @@ class Volumio(MediaPlayerDevice): def async_clear_playlist(self): """Clear players playlist.""" - # FIXME self._currentplaylist = None - return self.send_volumio_msg('clearQueue') + return self.send_volumio_msg('commands', + params={'cmd': 'clearQueue'}) @asyncio.coroutine @Throttle(PLAYLIST_UPDATE_INTERVAL)