Skip to content

Restrict Python Script#8053

Merged
balloob merged 1 commit into
devfrom
restrict-python-script
Jun 16, 2017
Merged

Restrict Python Script#8053
balloob merged 1 commit into
devfrom
restrict-python-script

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Jun 16, 2017

Description:

This will put some restrictions on what can be called from the Python Script environment. Protects any async method from being accessed and whitelists only a few methods on the hass object.

image

Example entry for configuration.yaml (if applicable):

python_script:

Checklist:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@balloob balloob force-pushed the restrict-python-script branch from afb9868 to 03313fd Compare June 16, 2017 04:41
@balloob balloob merged commit 74cc675 into dev Jun 16, 2017
@balloob balloob deleted the restrict-python-script branch June 16, 2017 05:13
@balloob balloob mentioned this pull request Jun 16, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
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.

3 participants