Skip to content

'EvalFunc' object is not callable when working with class #261

Answered by dlashua
vlycop asked this question in Q&A
Discussion options

You must be logged in to vote

In this particular case, I believe it's subclassing that isn't working.

As a whole, I'm really not sure. Subclassing, passing methods or classes created in pyscript to native python modules, and the use of non-pyscript decorators are issues I've run in to myself. But I don't know if a full list has been made.

In short, the solution is, keep your pyscript code to very simple classes and methods. For everything else, use native python modules of @pyscript_compile. It just means you have to separate the logic between what talks to HASS and what doesn't, since anything in @pyscript_compile won't be able to use pyscript functionality.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vlycop
Comment options

Comment options

You must be logged in to vote
1 reply
@vlycop
Comment options

Answer selected by vlycop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants