mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 20:39:01 +00:00
Allow iteration in python_script (#8134)
* Allow iteration in python_script * Add tests
This commit is contained in:
committed by
Pascal Vizeli
parent
4d2b79156d
commit
6398e92836
@@ -92,6 +92,7 @@ def execute(hass, filename, source, data=None):
|
||||
'_print_': StubPrinter,
|
||||
'_getattr_': protected_getattr,
|
||||
'_write_': full_write_guard,
|
||||
'_getiter_': iter,
|
||||
}
|
||||
logger = logging.getLogger('{}.{}'.format(__name__, filename))
|
||||
local = {
|
||||
|
||||
Reference in New Issue
Block a user