mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix clear playlist in Volumio component (#12173)
This commit is contained in:
parent
c7dad113d9
commit
a1d586c793
@ -3,6 +3,8 @@ Volumio Platform.
|
|||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.volumio/
|
https://home-assistant.io/components/media_player.volumio/
|
||||||
|
|
||||||
|
Volumio rest API: https://volumio.github.io/docs/API/REST_API.html
|
||||||
"""
|
"""
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
@ -247,9 +249,9 @@ class Volumio(MediaPlayerDevice):
|
|||||||
|
|
||||||
def async_clear_playlist(self):
|
def async_clear_playlist(self):
|
||||||
"""Clear players playlist."""
|
"""Clear players playlist."""
|
||||||
# FIXME
|
|
||||||
self._currentplaylist = None
|
self._currentplaylist = None
|
||||||
return self.send_volumio_msg('clearQueue')
|
return self.send_volumio_msg('commands',
|
||||||
|
params={'cmd': 'clearQueue'})
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
@Throttle(PLAYLIST_UPDATE_INTERVAL)
|
@Throttle(PLAYLIST_UPDATE_INTERVAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user