mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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):
|
async def async_media_stop(self):
|
||||||
"""Send stop command."""
|
"""Send stop command."""
|
||||||
if self._is_netusb:
|
if self._is_netusb:
|
||||||
await self.coordinator.musiccast.netusb_pause()
|
await self.coordinator.musiccast.netusb_stop()
|
||||||
else:
|
else:
|
||||||
raise HomeAssistantError(
|
raise HomeAssistantError(
|
||||||
"Service stop is not supported for non NetUSB sources."
|
"Service stop is not supported for non NetUSB sources."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user