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/53pull/29140/head^2
parent
8ef8a314df
commit
fa1622fe8b
|
@ -174,7 +174,7 @@ class RokuDevice(MediaPlayerDevice):
|
||||||
|
|
||||||
def turn_on(self):
|
def turn_on(self):
|
||||||
"""Turn on the Roku."""
|
"""Turn on the Roku."""
|
||||||
self.roku.power()
|
self.roku.poweron()
|
||||||
|
|
||||||
def turn_off(self):
|
def turn_off(self):
|
||||||
"""Turn off the Roku."""
|
"""Turn off the Roku."""
|
||||||
|
|
Loading…
Reference in New Issue