Open
Description
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!
Metadata
Metadata
Assignees
Labels
No labels