Fix webostv media next/previous services (#64355)

This commit is contained in:
Shay Levy 2022-01-18 13:09:26 +02:00 committed by GitHub
parent 64bcd60974
commit de19483632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,8 +463,7 @@ class LgWebOSMediaPlayerEntity(MediaPlayerEntity):
@cmd
async def async_media_next_track(self) -> None:
"""Send next track command."""
current_input = self._client.get_input()
if current_input == LIVE_TV_APP_ID:
if self._client.current_app_id == LIVE_TV_APP_ID:
await self._client.channel_up()
else:
await self._client.fast_forward()
@ -472,8 +471,7 @@ class LgWebOSMediaPlayerEntity(MediaPlayerEntity):
@cmd
async def async_media_previous_track(self) -> None:
"""Send the previous track command."""
current_input = self._client.get_input()
if current_input == LIVE_TV_APP_ID:
if self._client.current_app_id == LIVE_TV_APP_ID:
await self._client.channel_down()
else:
await self._client.rewind()