WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Pyscript to try to achieve some functionalities that I want for home assistant. Currently, I am trying update the alarm code in the configuration.yaml file to a new code that a user can specify using a frontend that I built. So once they enter the new code, that code is recieved through a webhook that is connected to home assistant. So is there a way to use pyscript to open the configuration.yaml file and update the alarm code with that new code? Any help would be appreciated!
same problem, when i want to open some files with: with open(datei_path, "r") as datei:
i become: Exception in </config/pyscript/hello_py.py> line 13: with open(datei_path, "r") as datei: ^ NameError: name 'open' is not defined
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am using Pyscript to try to achieve some functionalities that I want for home assistant. Currently, I am trying update the alarm code in the configuration.yaml file to a new code that a user can specify using a frontend that I built. So once they enter the new code, that code is recieved through a webhook that is connected to home assistant. So is there a way to use pyscript to open the configuration.yaml file and update the alarm code with that new code? Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions