From 779f520c5615dbfa7eded84ee1e003e4e9103962 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Fri, 18 Nov 2016 07:00:18 +0100 Subject: [PATCH] Make UI more responsive to power off for Samsung Smart TV (#4438) --- homeassistant/components/media_player/samsungtv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/media_player/samsungtv.py b/homeassistant/components/media_player/samsungtv.py index e384fd4bd3f..a43e8b551a3 100644 --- a/homeassistant/components/media_player/samsungtv.py +++ b/homeassistant/components/media_player/samsungtv.py @@ -128,6 +128,8 @@ class SamsungTVDevice(MediaPlayerDevice): def turn_off(self): """Turn off media player.""" self.send_key('KEY_POWEROFF') + # Force closing of remote session to provide instant UI feedback + self.get_remote().close() def volume_up(self): """Volume up the media player."""