Pass context to on/off scripts (#40254)

This commit is contained in:
Joakim Plate 2020-10-13 12:13:47 +02:00 committed by GitHub
parent 2d08708c3b
commit 11bbc14530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

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