Add media_stop for volumio integration (#37211)

This commit is contained in:
Andrey 2020-07-01 08:55:31 +03:00 committed by GitHub
parent 10786bbe7f
commit 431045f036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,6 +264,10 @@ class Volumio(MediaPlayerEntity):
else:
await self.send_volumio_msg("commands", params={"cmd": "pause"})
async def async_media_stop(self):
"""Send media_stop command to media player."""
await self.send_volumio_msg("commands", params={"cmd": "stop"})
async def async_set_volume_level(self, volume):
"""Send volume_up command to media player."""
await self.send_volumio_msg(