Pass context to on/off scripts (#40254)
This commit is contained in:
parent
2d08708c3b
commit
11bbc14530
3 changed files with 4 additions and 4 deletions
|
@ -208,7 +208,7 @@ class LgTVDevice(MediaPlayerEntity):
|
|||
def turn_on(self):
|
||||
"""Turn on the media player."""
|
||||
if self._on_action_script:
|
||||
self._on_action_script.run()
|
||||
self._on_action_script.run(context=self._context)
|
||||
|
||||
def volume_up(self):
|
||||
"""Volume up the media player."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue