Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'EvalFuncVar' object has no attribute 'mobile_app_xxx' #654

Open
theswordsmahin opened this issue Nov 3, 2024 · 0 comments

Comments

@theswordsmahin
Copy link

Hi there, new to pyscript so not sure if I'm overlooking something obvious.
I'm trying to send a notification to my phone using the notify.mobile_app_xxx service, and i can call via

service.call('notify', 'mobile_app_xxx', blocking=False, return_response=False, title=title, message=msg)

However if i try to use

notify.mobile_app_xxx(title=title, message=msg)

I get this error

AttributeError: 'EvalFuncVar' object has no attribute 'mobile_app_xxx'

I can call other services, the example light.turn_on worked great, but I cant figure this one out. Calling the action from the developer tools works fine. Nothing useful in the logs that i can see, but here is what i see with debug enabled

2024-11-02 18:31:11.757 ERROR (MainThread) [custom_components.pyscript.file.example.notify] Exception in <file.example.notify> line 23:
        notify.mobile_app_xxx()
        ^
AttributeError: 'EvalFuncVar' object has no attribute 'mobile_app_xxx'

I am on version 1.61, new install and i have tried restarting home assistant. Any info you can provide would be great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant