Skip to content

Commit

Permalink
Fix Home Assistant Script new method
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
sermayoral committed Sep 22, 2020
1 parent 672a6ad commit 2817bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/samsungtv_encrypted/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2817bb5

Please sign in to comment.