Skip to content

Commit 6d0c01f

Browse files
authored
Merge pull request #5 from basnijholt/patch-2
add bisect and colorsys to ALLOWED_IMPORTS
2 parents 77ca1a5 + 3076710 commit 6d0c01f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

custom_components/pyscript/eval.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ async def locals_func():
149149

150150

151151
ALLOWED_IMPORTS = {
152+
"bisect",
152153
"cmath",
154+
"colorsys",
153155
"datetime",
154156
"decimal",
155157
"fractions",

0 commit comments

Comments
 (0)