mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Clear mpd source playlist when not playing a playlist (#44164)
Prevents unexpected behavior.
This commit is contained in:
parent
8255815688
commit
8979c4987f
@ -365,6 +365,7 @@ class MpdDevice(MediaPlayerEntity):
|
||||
self._client.play()
|
||||
else:
|
||||
self._client.clear()
|
||||
self._currentplaylist = None
|
||||
self._client.add(media_id)
|
||||
self._client.play()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user