mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Fix webostv media next/previous services (#64355)
This commit is contained in:
parent
64bcd60974
commit
de19483632
@ -463,8 +463,7 @@ class LgWebOSMediaPlayerEntity(MediaPlayerEntity):
|
|||||||
@cmd
|
@cmd
|
||||||
async def async_media_next_track(self) -> None:
|
async def async_media_next_track(self) -> None:
|
||||||
"""Send next track command."""
|
"""Send next track command."""
|
||||||
current_input = self._client.get_input()
|
if self._client.current_app_id == LIVE_TV_APP_ID:
|
||||||
if current_input == LIVE_TV_APP_ID:
|
|
||||||
await self._client.channel_up()
|
await self._client.channel_up()
|
||||||
else:
|
else:
|
||||||
await self._client.fast_forward()
|
await self._client.fast_forward()
|
||||||
@ -472,8 +471,7 @@ class LgWebOSMediaPlayerEntity(MediaPlayerEntity):
|
|||||||
@cmd
|
@cmd
|
||||||
async def async_media_previous_track(self) -> None:
|
async def async_media_previous_track(self) -> None:
|
||||||
"""Send the previous track command."""
|
"""Send the previous track command."""
|
||||||
current_input = self._client.get_input()
|
if self._client.current_app_id == LIVE_TV_APP_ID:
|
||||||
if current_input == LIVE_TV_APP_ID:
|
|
||||||
await self._client.channel_down()
|
await self._client.channel_down()
|
||||||
else:
|
else:
|
||||||
await self._client.rewind()
|
await self._client.rewind()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user