You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version): 0.55.0
Python release (python3 --version): 3.5.2
Component/platform: python_script
Description of problem:sorted built-in is not provided in python script.
Expected:sorted to be provided in built-ins for python script
Problem-relevant configuration.yaml entries and steps to reproduce:
Create the following python script and put it into python_scripts directory:
result=sorted(['a','b','c'])
run script in HA
Observe the traceback
Traceback (if applicable):
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/python_script.py", line 143, in execute
exec(compiled.code, restricted_globals, local)
File "home_recirc_pump.py", line 14, in<module>
NameError: name 'sorted' is not defined
Additional info:
I was wondering if there is any reason why sorted() would be excluded from a set of operations considered safe for a sandbox.
The text was updated successfully, but these errors were encountered:
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
): 0.55.0Python release (
python3 --version
): 3.5.2Component/platform: python_script
Description of problem:
sorted
built-in is not provided in python script.Expected:
sorted
to be provided in built-ins for python scriptProblem-relevant
configuration.yaml
entries and steps to reproduce:python_scripts
directory:Traceback (if applicable):
Additional info:
I was wondering if there is any reason why
sorted()
would be excluded from a set of operations considered safe for a sandbox.The text was updated successfully, but these errors were encountered: