custom-components / pyscript

Pyscript adds rich Python scripting to HASS
Apache License 2.0
873 stars 46 forks source link

can not import library after reboot of HA #567

Open SpaceTeddy opened 8 months ago

SpaceTeddy commented 8 months ago

Dear all,

I installed pyscript and configured it via UI or yaml file. After install and config, my script with external imported libraries, woks fine. After reboot of Ha, it seems, that pyscript has lost some configuration items, because the script is not running well anymore. If I reinstall pyscript again, it runs, but then after reboot, the following failure appeared again. :(

Does anybody has noticed the same behavior and is there a solution for this?

BTW: with Python_script Pro I do not see this behavior and works perfectly.

Thanks a lot.

Chris

Logger: custom_components.pyscript.file.pyduro_mqtt.aduro_control Source: custom_components/pyscript/eval.py:493 Integration: Pyscript Python scripting (documentation, issues) First occurred: 08:10:00 (4 occurrences) Last logged: 08:11:00 Exception in <file.pyduro_mqtt.aduro_control> line 333: from pyduro.actions import FUNCTIONS, STATUS_PARAMS, discover, get, set, raw ^ AttributeError: module 'pyduro.actions' has no attribute 'get'