Add media_stop for volumio integration (#37211)
This commit is contained in:
parent
10786bbe7f
commit
431045f036
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue