diff --git a/custom_components/pyscript/eval.py b/custom_components/pyscript/eval.py index c12f4f4..5d93d60 100644 --- a/custom_components/pyscript/eval.py +++ b/custom_components/pyscript/eval.py @@ -1310,8 +1310,8 @@ async def ast_with(self, arg, async_attr=""): } ) for ctx in ctx_list: + value = await self.call_func(ctx["enter"], enter_attr, ctx["manager"]) if ctx["target"]: - value = await self.call_func(ctx["enter"], enter_attr, ctx["manager"]) await self.recurse_assign(ctx["target"], value) for arg1 in arg.body: val = await self.aeval(arg1)