Fix roku play/pause during standby (#36096)

pull/36155/head
Chris Talkington 2020-05-25 06:55:25 -05:00 committed by Franck Nijhof
parent 249c00d08f
commit 3d921cec04
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 6 additions and 3 deletions

View File

@ -171,15 +171,18 @@ class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
async def async_media_pause(self) -> None:
"""Send pause command."""
await self.coordinator.roku.remote("play")
if self.state != STATE_STANDBY:
await self.coordinator.roku.remote("play")
async def async_media_play(self) -> None:
"""Send play command."""
await self.coordinator.roku.remote("play")
if self.state != STATE_STANDBY:
await self.coordinator.roku.remote("play")
async def async_media_play_pause(self) -> None:
"""Send play/pause command."""
await self.coordinator.roku.remote("play")
if self.state != STATE_STANDBY:
await self.coordinator.roku.remote("play")
async def async_media_previous_track(self) -> None:
"""Send previous track command."""