Make UI more responsive to power off for Samsung Smart TV (#4438)

pull/4447/head
Magnus Ihse Bursie 2016-11-18 07:00:18 +01:00 committed by Paulus Schoutsen
parent 82ed7b6b08
commit 779f520c56
1 changed files with 2 additions and 0 deletions

View File

@ -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."""