mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 14:47:38 +00:00
Fix Volumio pause with missing track type (#44447)
This commit is contained in:
parent
2ee2f85574
commit
d4453908d5
@ -204,7 +204,7 @@ class Volumio(MediaPlayerEntity):
|
|||||||
|
|
||||||
async def async_media_pause(self):
|
async def async_media_pause(self):
|
||||||
"""Send media_pause command to media player."""
|
"""Send media_pause command to media player."""
|
||||||
if self._state["trackType"] == "webradio":
|
if self._state.get("trackType") == "webradio":
|
||||||
await self._volumio.stop()
|
await self._volumio.stop()
|
||||||
else:
|
else:
|
||||||
await self._volumio.pause()
|
await self._volumio.pause()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user