Hi
Totally new to pyscript.
Wondering if someone can tell me what the following error means and how to resolve it. I am on HA_OS. Is it the script or the actual program not playing?
Logger: homeassistant.config_entries
Source: config_entries.py:769
First occurred: 00:30:22 (1 occurrence)
Last logged: 00:30:22
Error setting up entry pyscript for pyscript
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/__init__.py", line 286, in async_setup_entry
await load_scripts(hass, config_entry.data, global_ctx_only=global_ctx_only)
File "/config/custom_components/pyscript/__init__.py", line 727, in load_scripts
await GlobalContextMgr.load_file(
global_ctx, src_info.file_path, source=src_info.source, reload=reload
)
File "/config/custom_components/pyscript/global_ctx.py", line 338, in load_file
await ast_ctx.eval()
File "/config/custom_components/pyscript/eval.py", line 2334, in eval
val = await self.aeval(self.ast)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/eval.py", line 946, in aeval
val = await getattr(self, name, self.ast_not_implemented)(arg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/eval.py", line 963, in ast_module
val = await self.aeval(arg1)
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/eval.py", line 946, in aeval
val = await getattr(self, name, self.ast_not_implemented)(arg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/eval.py", line 1043, in ast_if
val = await self.aeval(arg1)
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/eval.py", line 946, in aeval
val = await getattr(self, name, self.ast_not_implemented)(arg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/pyscript/eval.py", line 1338, in ast_raise
raise exc
SystemExit: usage: python3 tuya.py device_id