Fix Volumio pause with missing track type (#44447)

pull/44642/head
On Freund 2020-12-22 13:32:56 +02:00 committed by Franck Nijhof
parent f76211d58a
commit a58219bbc7
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class Volumio(MediaPlayerEntity):
async def async_media_pause(self):
"""Send media_pause command to media player."""
if self._state["trackType"] == "webradio":
if self._state.get("trackType") == "webradio":
await self._volumio.stop()
else:
await self._volumio.pause()