mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fix Yamaha MusicCast media_stop (#58024)
This commit is contained in:
@@ -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."
|
||||||
|
Reference in New Issue
Block a user