mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add media_stop for volumio integration (#37211)
This commit is contained in:
parent
10786bbe7f
commit
431045f036
@ -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…
x
Reference in New Issue
Block a user