From de194836323312616c1a539330846c2dacf3fc63 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Tue, 18 Jan 2022 13:09:26 +0200 Subject: [PATCH] Fix webostv media next/previous services (#64355) --- homeassistant/components/webostv/media_player.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/webostv/media_player.py b/homeassistant/components/webostv/media_player.py index 74e7e63b2d0..bc42ff7ad01 100644 --- a/homeassistant/components/webostv/media_player.py +++ b/homeassistant/components/webostv/media_player.py @@ -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()