Use roku.poweron method for media_player.turn_on (#29123)

Instead of using the roku.power method, which toggles power,
implement the media_player.turn_on command for the roku component
by calling the new roku.poweron method.

Fixes #28961, but depends on upstream
https://github.com/jcarbaugh/python-roku/pull/53
pull/29140/head^2
Brett T. Warden 2019-11-27 09:19:10 -08:00 committed by Pascal Vizeli
parent 8ef8a314df
commit fa1622fe8b
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class RokuDevice(MediaPlayerDevice):
def turn_on(self):
"""Turn on the Roku."""
self.roku.power()
self.roku.poweron()
def turn_off(self):
"""Turn off the Roku."""