Fix Yamaha MusicCast media_stop (#58024)

This commit is contained in:
micha91 2021-10-20 00:18:08 +02:00 committed by GitHub
parent c6aa767be6
commit 518151fbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."