Skip to content

Add context to scripts and automations#16415

Merged
pvizeli merged 4 commits intodevfrom
script-context
Sep 4, 2018
Merged

Add context to scripts and automations#16415
pvizeli merged 4 commits intodevfrom
script-context

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Sep 4, 2018

Description:

Final piece in the context puzzle: propagate context through automations and scripts.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

if CONF_TIMEOUT in action:
self._async_set_timeout(
action, variables, action.get(CONF_CONTINUE, True))
action, variables, context, action.get(CONF_CONTINUE, True))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (84 > 79 characters)

@pvizeli pvizeli merged commit 746f4ac into dev Sep 4, 2018
@ghost ghost removed the in progress label Sep 4, 2018
@pvizeli pvizeli deleted the script-context branch September 4, 2018 19:16
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
* Add context to script helper

* Update script component

* Add context to automations

* Lint
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants