Hacker News new | past | comments | ask | show | jobs | submit login

If you are expecting auto discovery of state variables or service calls then that would be nice, but that seems like a bit too much to ask. And it's not something that I personally feel is necessary as you're likely already are familiar enough with the home assistant states/services that you want to interact with by checking them out in the home assistant developer UI.

My PyCharm just shows those types as unknown, not as errors. I get auto completion & type checking for all the code I write myself.

It's also important to note that PyScript isn't regular python. Instead it's an interpreted script[1] that is compatible with the Python syntax. This is unfortunate, but enables most of the magic of PyScript which otherwise would not be practical.

[1] https://github.com/custom-components/pyscript/blob/master/cu...




The thing is, the Jupyter notebook does support auto discovery/complete of all of the state variables and services, but only in the browser. Not even in the notebook running inside the IDE.

It's just maddening that I can't seem to figure out how to get that one part working. I end up using a mix of the notebook and going through the developer UI, but wish I could figure out that one quirk.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: