Skip to content

Commit

Permalink
Allow iteration in python_script
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 21, 2017
1 parent 66fc852 commit 7139cb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/python_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def protected_getattr(obj, name, default=None):
'_print_': StubPrinter,
'_getattr_': protected_getattr,
'_write_': full_write_guard,
'_getiter_': iter,
}
logger = logging.getLogger('{}.{}'.format(__name__, filename))
local = {
Expand Down

0 comments on commit 7139cb1

Please sign in to comment.