Fix Volumio pause with missing track type (#44447)

This commit is contained in:
On Freund 2020-12-22 13:32:56 +02:00 committed by GitHub
parent 2ee2f85574
commit d4453908d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()