From 2817bb55396eefc3b73e1168d81815bc844ecc60 Mon Sep 17 00:00:00 2001 From: Sergio Mayoral Martinez Date: Wed, 23 Sep 2020 01:33:10 +0200 Subject: [PATCH] Fix Home Assistant Script new method Fixes #53 --- custom_components/samsungtv_encrypted/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/samsungtv_encrypted/media_player.py b/custom_components/samsungtv_encrypted/media_player.py index 402e52c..8d02b8f 100644 --- a/custom_components/samsungtv_encrypted/media_player.py +++ b/custom_components/samsungtv_encrypted/media_player.py @@ -127,7 +127,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None): key_power_off = config.get(CONF_KEY_POWER_OFF) turn_on_action = config.get(CONF_TURN_ON_ACTION) if turn_on_action: - turn_on_action = Script(hass, turn_on_action) + turn_on_action = Script(hass, turn_on_action, name, 'media_player') elif discovery_info is not None: tv_name = discovery_info.get("name") model = discovery_info.get("model_name")