mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
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
This commit is contained in:
committed by
Pascal Vizeli
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."""
|
||||||
|
Reference in New Issue
Block a user