mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix Yamaha MusicCast media_stop (#58024)
This commit is contained in:
parent
c6aa767be6
commit
518151fbe6
@ -318,7 +318,7 @@ class MusicCastMediaPlayer(MusicCastDeviceEntity, MediaPlayerEntity):
|
||||
async def async_media_stop(self):
|
||||
"""Send stop command."""
|
||||
if self._is_netusb:
|
||||
await self.coordinator.musiccast.netusb_pause()
|
||||
await self.coordinator.musiccast.netusb_stop()
|
||||
else:
|
||||
raise HomeAssistantError(
|
||||
"Service stop is not supported for non NetUSB sources."
|
||||
|
Loading…
x
Reference in New Issue
Block a user